comparison MoinMoin/security/textcha.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 915a431b663c
comparison
equal deleted inserted replaced
3109:4cd113328476 3110:a48929a5036c
22 """ 22 """
23 23
24 import re 24 import re
25 import random 25 import random
26 26
27 from MoinMoin.server import getLogger 27 from MoinMoin import log
28 logging = getLogger(__name__) 28 logging = log.getLogger(__name__)
29
30 # use this to temporarily and selectively enable debug logging for this module
31 #logging.setLevel(logging.DEBUG)
32 29
33 from MoinMoin import wikiutil 30 from MoinMoin import wikiutil
34 31
35 class TextCha(object): 32 class TextCha(object):
36 """ Text CAPTCHA support """ 33 """ Text CAPTCHA support """