mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Tweak logger
This commit is contained in:
parent
18d5c3bc26
commit
6b670c74cf
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ logger_format = (
|
||||||
"<cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> | "
|
"<cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> | "
|
||||||
"{extra[request_id]} - <level>{message}</level>"
|
"{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):
|
class ActivityPubResponse(JSONResponse):
|
||||||
|
|
Loading…
Reference in a new issue