diff moin.py @ 3111:79f850129782

logging: fix server scripts to load logging config, fix logging configs
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 25 Feb 2008 14:01:08 +0100
parents ccf6d7ffb310
children
line wrap: on
line diff
--- a/moin.py	Mon Feb 25 03:41:39 2008 +0100
+++ b/moin.py	Mon Feb 25 14:01:08 2008 +0100
@@ -6,10 +6,7 @@
     @license: GNU GPL, see COPYING for details.
 """
 
-import sys
-import os
-
-from MoinMoin.script import MoinScript
+import os, sys
 
 # Path to MoinMoin package, needed if you installed with --prefix=PREFIX
 # or if you did not use setup.py.
@@ -19,6 +16,11 @@
 sys.path.insert(0, moinpath)
 os.chdir(moinpath)
 
+from MoinMoin import log
+log.load_config('wiki/config/logging/stderr') # XXX maybe fix path
+
+from MoinMoin.script import MoinScript
+
 if __name__ == '__main__':
     sys.argv = ["moin.py", "server", "standalone"]
     MoinScript().run()