comparison MoinMoin/util/moinoid.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 817d99d715fe
comparison
equal deleted inserted replaced
3109:4cd113328476 3110:a48929a5036c
14 from openid.association import Association 14 from openid.association import Association
15 from openid.store import nonce 15 from openid.store import nonce
16 16
17 from MoinMoin import caching 17 from MoinMoin import caching
18 18
19 from MoinMoin.server import getLogger 19 from MoinMoin import log
20 logging = getLogger(__name__) 20 logging = log.getLogger(__name__)
21
22 # use this to temporarily and selectively enable debug logging for this module
23 #logging.setLevel(logging.DEBUG)
24 21
25 # redirect openid logging to moin log 22 # redirect openid logging to moin log
26 def log(msg, level=0): 23 def log(msg, level=0):
27 logging.log(level, msg) 24 logging.log(level, msg)
28 25