Skip to content

Commit b620def

Browse files
committed
Merge pull request realpython#704 from ForeverWintr/master
Fix incorrect dictConfig example
2 parents 2c4ec63 + bdf3e1e commit b620def

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/writing/logging.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ the configuration dictionary.
163163
'formatter': 'f',
164164
'level': logging.DEBUG}
165165
},
166-
loggers = {
167-
'root': {'handlers': ['h'],
168-
'level': logging.DEBUG}
169-
}
166+
root = {
167+
'handlers': ['h'],
168+
'level': logging.DEBUG,
169+
},
170170
)
171171
172172
dictConfig(logging_config)

0 commit comments

Comments
 (0)