fix server restart issue

This commit is contained in:
Vladimir Mandic
2023-06-09 16:06:55 -04:00
parent 6a5ddebecc
commit 159d00d7e9
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -297,6 +297,8 @@ def webui():
# override all loggers to use the same handlers as the main logger
for logger in [logging.getLogger(name) for name in logging.root.manager.loggerDict]: # pylint: disable=no-member
if logger.name.startswith('uvicorn'):
continue
logger.handlers = log.handlers
if cmd_opts.autolaunch and local_url is not None: