diff MoinMoin/log.py @ 5943:51ea4cb7b390

at startup, announce moin version and code path
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 19 Feb 2013 23:59:31 +0100
parents c14974df2b58
children
line wrap: on
line diff
--- a/MoinMoin/log.py	Mon Feb 04 13:18:11 2013 +0100
+++ b/MoinMoin/log.py	Tue Feb 19 23:59:31 2013 +0100
@@ -151,6 +151,11 @@
         l.info('using logging configuration read from built-in fallback in MoinMoin.log module')
         warnings.showwarning = _log_warning
 
+    import MoinMoin
+    code_path = os.path.dirname(MoinMoin.__file__)
+    from MoinMoin.version import project, release, revision
+    l.info('Running %s %s %s code from %s' % (project, release, revision, code_path))
+
 
 def getLogger(name):
     """ wrapper around logging.getLogger, so we can do some more stuff: