1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

Use logger for WSGIServer

Log exception from the WSGIServer. Exceptions from socket timeouts are currently written to stderr.
This commit is contained in:
Unrud 2017-03-10 13:39:26 +01:00
parent edebcf03c7
commit 7d687205bd
2 changed files with 11 additions and 0 deletions

View file

@ -173,6 +173,7 @@ def serve(configuration, logger):
server_class.client_timeout = configuration.getint("server", "timeout")
server_class.max_connections = configuration.getint(
"server", "max_connections")
server_class.logger = logger
RequestHandler.logger = logger
if not configuration.getboolean("server", "dns_lookup"):