Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 4, 2021
1 parent 00bf80d commit e9eed3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/structlog/contextvars.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def merge_contextvars(

for k in ctx:
if k.name.startswith(STRUCTLOG_KEY_PREFIX) and ctx[k] is not Ellipsis:
event_dict.setdefault(k.name[len(STRUCTLOG_KEY_PREFIX):], ctx[k]) # noqa
event_dict.setdefault(
k.name[len(STRUCTLOG_KEY_PREFIX) :], ctx[k]
) # noqa

return event_dict

Expand Down

0 comments on commit e9eed3b

Please sign in to comment.