We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 691f5b6 commit 175f402Copy full SHA for 175f402
1 file changed
src/core/logging.py
@@ -20,7 +20,11 @@ def setup_log_sinks(configuration_file: Path | None = None) -> None:
20
sink = sink_configuration.pop("sink")
21
if sink == "sys.stderr":
22
sink = sys.stderr
23
- logger.add(sink, serialize=True, **sink_configuration)
+ # Logs the additionally provided data as JSON.
24
+ sink_configuration.setdefault("serialize", True)
25
+ # Decouples log calls from I/O and makes it multiprocessing safe.
26
+ sink_configuration.setdefault("enqueue", True)
27
+ logger.add(sink, **sink_configuration)
28
29
30
async def add_request_context_to_log(
0 commit comments