changeset 3129:d57fed1b0b43

multiconfig: also log which farmconfig we use
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 27 Feb 2008 14:08:29 +0100
parents 9213b197d1cb
children b92ac8cfbf44 61d2168cc010
files MoinMoin/config/multiconfig.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/config/multiconfig.py	Wed Feb 27 13:04:26 2008 +0100
+++ b/MoinMoin/config/multiconfig.py	Wed Feb 27 14:08:29 2008 +0100
@@ -82,6 +82,7 @@
             _farmconfig_mtime = 0
             _url_re_cache = [('wikiconfig', re.compile(r'.')), ] # matches everything
         else:
+            logging.info("using farm config: %s" % os.path.abspath(farmconfig.__file__))
             try:
                 cache = []
                 for name, regex in farmconfig.wikis:
@@ -115,7 +116,7 @@
         configClass = getattr(module, 'Config')
         cfg = configClass(name)
         cfg.cfg_mtime = max(mtime, _farmconfig_mtime)
-        logging.info("using config: %s" % os.path.abspath(module.__file__))
+        logging.info("using wiki config: %s" % os.path.abspath(module.__file__))
     except ImportError, err:
         logging.error(str(err))
         msg = '''ImportError: %(err)s