[CalendarServer-changes] [12426] twext/trunk/twext/python/log.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:23:32 PDT 2014


Revision: 12426
          http://trac.calendarserver.org//changeset/12426
Author:   wsanchez at apple.com
Date:     2014-01-22 18:13:41 -0800 (Wed, 22 Jan 2014)
Log Message:
-----------
cosmetic

Modified Paths:
--------------
    twext/trunk/twext/python/log.py

Modified: twext/trunk/twext/python/log.py
===================================================================
--- twext/trunk/twext/python/log.py	2014-01-23 01:15:50 UTC (rev 12425)
+++ twext/trunk/twext/python/log.py	2014-01-23 02:13:41 UTC (rev 12426)
@@ -946,19 +946,28 @@
                 # this.  Skip the module.
                 # See https://trac.calendarserver.org/ticket/832
                 continue
+
             legacyLogger = LegacyLogger(logger=newLogger)
 
             if obj is twisted.python.log:
-                log.info("Replacing Twisted log module object {0} in {1}"
-                         .format(name, module.__name__))
+                log.info(
+                    "Replacing Twisted log module object {0} in {1}"
+                    .format(name, module.__name__)
+                )
                 setattr(module, name, legacyLogger)
+
             elif obj is twisted.python.log.msg:
-                log.info("Replacing Twisted log.msg object {0} in {1}"
-                         .format(name, module.__name__))
+                log.info(
+                    "Replacing Twisted log.msg object {0} in {1}"
+                    .format(name, module.__name__)
+                )
                 setattr(module, name, legacyLogger.msg)
+
             elif obj is twisted.python.log.err:
-                log.info("Replacing Twisted log.err object {0} in {1}"
-                         .format(name, module.__name__))
+                log.info(
+                    "Replacing Twisted log.err object {0} in {1}"
+                    .format(name, module.__name__)
+                )
                 setattr(module, name, legacyLogger.err)
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/935fb2d8/attachment.html>


More information about the calendarserver-changes mailing list