diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/logging.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 26fa97e..1005b79 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -159,7 +159,7 @@ instantiated directly, but always through the module-level function FORMAT = '%(asctime)-15s %(clientip)s %(user)-8s %(message)s' logging.basicConfig(format=FORMAT) - d = { '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) |