changeset 3067:7fa08b9b8a90

adjusting log levels (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 22 Feb 2008 17:28:21 +0100
parents db0a4f4b30d3
children 5471f4a009dc
files MoinMoin/i18n/__init__.py MoinMoin/request/__init__.py
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/i18n/__init__.py	Thu Feb 21 21:40:46 2008 +0100
+++ b/MoinMoin/i18n/__init__.py	Fri Feb 22 17:28:21 2008 +0100
@@ -272,6 +272,7 @@
             # if we don't find an english "translation", we just format it
             # on the fly (this is needed for cfg.editor_quickhelp).
             if lang != 'en':
+                logging.debug("i18n: fallback to english, requested string not in %r translation: %r" % (lang, original))
                 translated = getText(original, request, 'en', formatted)
             elif formatted:
                 translated = translations[lang].formatMarkup(request, original)
--- a/MoinMoin/request/__init__.py	Thu Feb 21 21:40:46 2008 +0100
+++ b/MoinMoin/request/__init__.py	Fri Feb 22 17:28:21 2008 +0100
@@ -15,7 +15,7 @@
 #proxies_trusted = ['127.0.0.1', ] # can be a list of multiple IPs
 
 import logging
-proxy_loglevel = logging.DEBUG # logging.NOTSET (never), logging.INFO (when not debugging)
+proxy_loglevel = logging.INFO # logging.NOTSET (never), .DEBUG, .INFO
 
 def find_remote_addr(addrs):
     """ Find the last remote IP address before it hits our reverse proxies.