Skip to content

Commit

Permalink
Remove default request logging
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed May 7, 2011
1 parent f39d90c commit e87ffea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion radicale.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
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())
Expand Down
6 changes: 6 additions & 0 deletions radicale/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ def __init__(self, address, handler):
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):
Expand Down

0 comments on commit e87ffea

Please sign in to comment.