Bug #1313, fix typo (wrong variable name) in example.

This commit is contained in:
Neal Norwitz 2007-10-23 05:44:27 +00:00
parent 8feafab346
commit 530042816c
1 changed files with 1 additions and 1 deletions

View File

@ -438,7 +438,7 @@ instantiated directly, but always through the module-level function
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)