Skip to content

Commit 71ba053

Browse files
authored
Display extra info in structlog (#1333)
1 parent da0dc91 commit 71ba053

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/code_review_tools/log.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ def init_logger(
141141
# E.g.: 'event' become 'msg' and, at the end, all remaining values from 'event_dict'
142142
# are added as 'extra'
143143
structlog.stdlib.render_to_log_kwargs,
144+
# Render the message as key=repr(value) for both msg and extra arguments
145+
structlog.processors.KeyValueRenderer(key_order=["msg"]),
144146
]
145147

146148
structlog.configure(

0 commit comments

Comments
 (0)