Tweak logger

main
Thomas Sileo 2022-08-21 09:42:28 +02:00
parent 18d5c3bc26
commit 6b670c74cf
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ logger_format = (
"<cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> | "
"{extra[request_id]} - <level>{message}</level>"
)
logger.add(sys.stdout, format=logger_format)
logger.add(sys.stdout, format=logger_format, level="DEBUG" if DEBUG else "INFO")
class ActivityPubResponse(JSONResponse):