Remove default request logging
This commit is contained in:
parent
f39d90caa9
commit
e87ffeadb1
@ -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())
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user