mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
hotfix for crashing api
This commit is contained in:
parent
1d107f30e5
commit
4570702dd0
@ -230,7 +230,7 @@ def invoke_api():
|
|||||||
|
|
||||||
# replace uvicorn's loggers with InvokeAI's for consistent appearance
|
# replace uvicorn's loggers with InvokeAI's for consistent appearance
|
||||||
for logname in ["uvicorn.access", "uvicorn"]:
|
for logname in ["uvicorn.access", "uvicorn"]:
|
||||||
l = logging.get_logger(logname)
|
l = logging.getLogger(logname)
|
||||||
l.handlers.clear()
|
l.handlers.clear()
|
||||||
for ch in logger.handlers:
|
for ch in logger.handlers:
|
||||||
l.addHandler(ch)
|
l.addHandler(ch)
|
||||||
|
Loading…
Reference in New Issue
Block a user