Commit 262a8f8c authored by Andreas Jung's avatar Andreas Jung

fixes

parent f2ef0f2f
...@@ -58,7 +58,6 @@ from ZServer import requestCloseOnExec ...@@ -58,7 +58,6 @@ from ZServer import requestCloseOnExec
import DebugLogger import DebugLogger
from medusa import logger from medusa import logger
register_subsystem('ZServer HTTPServer')
CONTENT_LENGTH = re.compile('Content-Length: ([0-9]+)',re.I) CONTENT_LENGTH = re.compile('Content-Length: ([0-9]+)',re.I)
CONNECTION = re.compile('Connection: (.*)', re.I) CONNECTION = re.compile('Connection: (.*)', re.I)
......
...@@ -24,7 +24,6 @@ def patchAsyncoreLogger(): ...@@ -24,7 +24,6 @@ def patchAsyncoreLogger():
from logging import getLogger from logging import getLogger
LOG = getLogger('ZServer') LOG = getLogger('ZServer')
register_subsystem('ZServer')
def log_info(self, message, type='info'): def log_info(self, message, type='info'):
if message[:14]=='adding channel' or \ if message[:14]=='adding channel' or \
...@@ -32,7 +31,7 @@ def patchAsyncoreLogger(): ...@@ -32,7 +31,7 @@ def patchAsyncoreLogger():
message == 'Computing default hostname': message == 'Computing default hostname':
LOG.debug(message) LOG.debug(message)
else: else:
getattr(LOG, severity)(message) getattr(LOG, type)(message)
import asyncore import asyncore
asyncore.dispatcher.log_info=log_info asyncore.dispatcher.log_info=log_info
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment