changeset 4413:f26a2b14f534

make werkzeug use our logging and logging configuration, not setup its own
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 02 Nov 2008 05:01:53 +0100
parents 200fe4447009
children b542720564fc
files MoinMoin/web/serving.py
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/serving.py	Sun Nov 02 04:48:40 2008 +0100
+++ b/MoinMoin/web/serving.py	Sun Nov 02 05:01:53 2008 +0100
@@ -10,12 +10,17 @@
 """
 import os
 from MoinMoin import config
-from werkzeug.utils import SharedDataMiddleware
-from werkzeug.serving import BaseRequestHandler, run_simple
 
 from MoinMoin import version, log
 logging = log.getLogger(__name__)
 
+# make werkzeug use our logging framework and configuration:
+import werkzeug._internal
+werkzeug._internal._logger = log.getLogger('werkzeug')
+
+from werkzeug.utils import SharedDataMiddleware
+from werkzeug.serving import BaseRequestHandler, run_simple
+
 class RequestHandler(BaseRequestHandler):
     """
     A request-handler for WSGI, that overrides the default logging