hotfix for crashing api

This commit is contained in:
Lincoln Stein 2023-08-17 20:17:10 -04:00
parent 1d107f30e5
commit 4570702dd0

View File

@ -230,7 +230,7 @@ def invoke_api():
# replace uvicorn's loggers with InvokeAI's for consistent appearance
for logname in ["uvicorn.access", "uvicorn"]:
l = logging.get_logger(logname)
l = logging.getLogger(logname)
l.handlers.clear()
for ch in logger.handlers:
l.addHandler(ch)