tune log level

This commit is contained in:
wataru 2023-01-01 01:58:38 +09:00
parent f6fc56678d
commit 9c4a7d5e49
2 changed files with 6 additions and 4 deletions

View File

@ -183,7 +183,7 @@ if __name__ == '__main__':
reload=True,
ssl_keyfile=key_path,
ssl_certfile=cert_path,
# log_level="critical"
log_level="warning"
)
else:
# HTTP サーバ起動
@ -192,7 +192,7 @@ if __name__ == '__main__':
f"{os.path.basename(__file__)[:-3]}:app_fastapi",
host="0.0.0.0",
port=int(PORT),
# log_level="critical"
log_level="warning"
)
else:
uvicorn.run(
@ -200,6 +200,6 @@ if __name__ == '__main__':
host="0.0.0.0",
port=int(PORT),
reload=True,
# log_level="critical"
log_level="warning"
)

View File

@ -10,4 +10,6 @@ import logging
# logger.addFilter(UvicornSuppressFilter())
# # logger.propagate = False
# logger = logging.getLogger("multipart.multipart")
# logger.propagate = False
# logger.propagate = False
logging.getLogger('asyncio').setLevel(logging.WARNING)