diff MoinMoin/util/moinoid.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 c81b9c983b1d
children a48929a5036c
line wrap: on
line diff
--- a/MoinMoin/util/moinoid.py	Sat Feb 23 21:45:02 2008 +0100
+++ b/MoinMoin/util/moinoid.py	Sat Feb 23 22:59:30 2008 +0100
@@ -5,15 +5,22 @@
     @license: GNU GPL, see COPYING for details.
 """
 
-from MoinMoin import caching
+from sha import sha
+from random import randint
+import time
+
 from openid import oidutil
 from openid.store.interface import OpenIDStore
 from openid.association import Association
 from openid.store import nonce
-import logging
-from sha import sha
-from random import randint
-import time
+
+from MoinMoin import caching
+
+from MoinMoin.server import getLogger
+logging = getLogger(__name__)
+
+# use this to temporarily and selectively enable debug logging for this module
+#logging.setLevel(logging.DEBUG)
 
 # redirect openid logging to moin log
 def log(msg, level=0):