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

fixes

parent f2ef0f2f
......@@ -58,7 +58,6 @@ from ZServer import requestCloseOnExec
import DebugLogger
from medusa import logger
register_subsystem('ZServer HTTPServer')
CONTENT_LENGTH = re.compile('Content-Length: ([0-9]+)',re.I)
CONNECTION = re.compile('Connection: (.*)', re.I)
......
......@@ -24,7 +24,6 @@ def patchAsyncoreLogger():
from logging import getLogger
LOG = getLogger('ZServer')
register_subsystem('ZServer')
def log_info(self, message, type='info'):
if message[:14]=='adding channel' or \
......@@ -32,7 +31,7 @@ def patchAsyncoreLogger():
message == 'Computing default hostname':
LOG.debug(message)
else:
getattr(LOG, severity)(message)
getattr(LOG, type)(message)
import asyncore
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