Skip to content

Commit

Permalink
server/dx: fix Uvicorn logs not outputting extra data
Browse files Browse the repository at this point in the history
  • Loading branch information
frankie567 committed Mar 21, 2024
1 parent 49da557 commit 02b0dc1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/polar/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,15 @@ def configure_stdlib(cls) -> None:
cls.get_renderer(),
],
"foreign_pre_chain": [
structlog.contextvars.merge_contextvars,
structlog.stdlib.add_log_level,
structlog.stdlib.add_logger_name,
structlog.stdlib.PositionalArgumentsFormatter(),
structlog.stdlib.ExtraAdder(),
cls.timestamper,
structlog.processors.UnicodeDecoder(),
structlog.processors.StackInfoRenderer(),
structlog.processors.format_exc_info,
],
},
},
Expand Down

0 comments on commit 02b0dc1

Please sign in to comment.