diff MoinMoin/wikiutil.py @ 3110:a48929a5036c

logging: make it work correctly by doing logging configuration very early
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 25 Feb 2008 03:41:39 +0100
parents c6e39279f83b
children ea5383222f2f
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Sun Feb 24 12:50:54 2008 +0100
+++ b/MoinMoin/wikiutil.py	Mon Feb 25 03:41:39 2008 +0100
@@ -17,11 +17,8 @@
 import time
 import urllib
 
-from MoinMoin.server import getLogger
-logging = getLogger(__name__)
-
-# use this to temporarily and selectively enable debug logging for this module
-#logging.setLevel(logging.DEBUG)
+from MoinMoin import log
+logging = log.getLogger(__name__)
 
 from MoinMoin import config
 from MoinMoin.util import pysupport, lock