diff MoinMoin/server/server_standalone.py @ 3107:c6e39279f83b

refactor logging usage
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 23 Feb 2008 22:59:30 +0100
parents 80e1a910a2f1
children a48929a5036c
line wrap: on
line diff
--- a/MoinMoin/server/server_standalone.py	Sat Feb 23 21:45:02 2008 +0100
+++ b/MoinMoin/server/server_standalone.py	Sat Feb 23 22:59:30 2008 +0100
@@ -34,9 +34,15 @@
     @license: GNU GPL, see COPYING for details.
 """
 
-import os, sys, time, socket, errno, shutil, logging
+import os, sys, time, socket, errno, shutil
 import BaseHTTPServer, SimpleHTTPServer, SocketServer
 
+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 version, wikiutil
 from MoinMoin.server import Config, switchUID
 from MoinMoin.request import request_standalone