]> granicus.if.org Git - python/commitdiff
Issue #11331: fixed documentation in logging cookbook.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 26 Feb 2011 14:24:29 +0000 (14:24 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 26 Feb 2011 14:24:29 +0000 (14:24 +0000)
Doc/howto/logging-cookbook.rst

index f60b06cb6d0ad2f38f7a95ef6773da0b1b71ed45..198d89231b18efd451fda7e8b2d1e995a24ba63a 100644 (file)
@@ -630,8 +630,6 @@ script::
 
     if __name__ == '__main__':
        levels = (logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR, logging.CRITICAL)
-       a1 = logging.LoggerAdapter(logging.getLogger('a.b.c'),
-                                  { 'ip' : '123.231.231.123', 'user' : 'sheila' })
        logging.basicConfig(level=logging.DEBUG,
                            format='%(asctime)-15s %(name)-5s %(levelname)-8s IP: %(ip)-15s User: %(user)-8s %(message)s')
        a1 = logging.getLogger('a.b.c')