Skip to content
Snippets Groups Projects
Unverified Commit aea3bd37 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Actually merge the context variables into log entries


Without this processors, HTTP access logs look like this:

    [info] 127.0.0.1:44936 PUT /build 1.1 404 9 3170 [http.server]

With the change applied, they become more informative:

    [info] 127.0.0.1:44936 PUT /build 1.1 404 9 3170 [http.server] http_port=6040 known_worker=False worker_id=None

Signed-off-by: default avatarAndrej Shadura <andrew.shadura@collabora.co.uk>
parent be2e5ba0
No related branches found
No related tags found
1 merge request!47Fix path-prefixed proxies
Pipeline #552620 passed
......@@ -59,6 +59,7 @@ def configure_logging():
timestamper = structlog.processors.TimeStamper(fmt="%Y-%m-%dT%H:%M:%SZ", utc=True)
shared_processors = [
structlog.stdlib.add_log_level,
structlog.contextvars.merge_contextvars,
timestamper,
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment