Remove default request logging

This commit is contained in:
Guillaume Ayoub 2011-05-07 12:18:32 +02:00
parent f39d90caa9
commit e87ffeadb1
2 changed files with 8 additions and 1 deletions

View File

@ -103,7 +103,8 @@ for host in options.hosts.split(','):
address, port = host.strip().rsplit(':', 1)
address, port = address.strip('[] '), int(port)
servers.append(
make_server(address, port, radicale.Application(), server_class))
make_server(address, port, radicale.Application(),
server_class, radicale.RequestHandler))
# SIGTERM and SIGINT (aka KeyboardInterrupt) should just mark this for shutdown
signal.signal(signal.SIGTERM, lambda *_: shutdown_program.set())

View File

@ -91,6 +91,12 @@ class HTTPSServer(HTTPServer):
self.server_activate()
class RequestHandler(wsgiref.simple_server.WSGIRequestHandler):
"""HTTP requests handler."""
def log_message(self, *args, **kwargs):
"""Disable inner logging management."""
class Application(object):
"""WSGI application managing calendars."""
def __init__(self):