Skip to content

Commit fd4293b

Browse files
author
Elad Namdar
committed
Fix contextvars docs
1 parent be0f855 commit fd4293b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/contextvars.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ The general flow is:
5050
>>> # Then use loggers as per normal
5151
>>> # (perhaps by using structlog.get_logger() to create them).
5252
>>> log.msg("hello")
53-
a=1 b=2 event='hello'
53+
event='hello' a=1 b=2
5454
>>> # Use unbind_contextvars to remove a variable from the context
5555
>>> unbind_contextvars("b")
5656
>>> log.msg("world")
57-
a=1 event='world'
57+
event='world' a=1
5858
>>> # And when we clear the threadlocal state again, it goes away.
5959
>>> clear_contextvars()
6060
>>> log.msg("hi there")

0 commit comments

Comments
 (0)