mirror of https://github.com/python/cpython
Bug #1313, fix typo (wrong variable name) in example.
This commit is contained in:
parent
1046af6f59
commit
4aa5f4bc5a
|
@ -430,7 +430,7 @@ logged messages. For example:
|
|||
\begin{verbatim}
|
||||
FORMAT = "%(asctime)-15s %(clientip)s %(user)-8s %(message)s"
|
||||
logging.basicConfig(format=FORMAT)
|
||||
dict = { 'clientip' : '192.168.0.1', 'user' : 'fbloggs' }
|
||||
d = { 'clientip' : '192.168.0.1', 'user' : 'fbloggs' }
|
||||
logger = logging.getLogger("tcpserver")
|
||||
logger.warning("Protocol problem: %s", "connection reset", extra=d)
|
||||
\end{verbatim}
|
||||
|
|
Loading…
Reference in New Issue