diff MoinMoin/security/textcha.py @ 3159:915a431b663c

logging: security package refactored, moved frozenset to python_compatibility
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 01 Mar 2008 22:24:51 +0100
parents a48929a5036c
children a952d07dea69
line wrap: on
line diff
--- a/MoinMoin/security/textcha.py	Sat Mar 01 21:39:29 2008 +0100
+++ b/MoinMoin/security/textcha.py	Sat Mar 01 22:24:51 2008 +0100
@@ -54,10 +54,10 @@
         textchas = cfg.textchas
         if textchas:
             lang = user.language or request.lang
-            #logging.debug(u"TextCha: user.language == '%s'." % lang)
+            logging.debug(u"TextCha: user.language == '%s'." % lang)
             if lang not in textchas:
                 lang = cfg.language_default
-                #logging.debug(u"TextCha: fallback to language_default == '%s'." % lang)
+                logging.debug(u"TextCha: fallback to language_default == '%s'." % lang)
                 if lang not in textchas:
                     logging.error(u"TextCha: The textchas do not have content for language_default == '%s'! Falling back to English." % lang)
                     lang = 'en'
@@ -70,7 +70,7 @@
         if lang is None:
             return None
         else:
-            #logging.debug(u"TextCha: using lang = '%s'" % lang)
+            logging.debug(u"TextCha: using lang = '%s'" % lang)
             return textchas[lang]
 
     def _init_qa(self, question=None):