Tweak logger

This commit is contained in:
Thomas Sileo 2022-08-21 09:42:28 +02:00
parent 18d5c3bc26
commit 6b670c74cf

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):