tone down http logging

This commit is contained in:
Jakob Ketterl 2019-09-22 20:51:33 +02:00
parent cfb4208db2
commit 8b9121a5c1

View File

@ -16,6 +16,7 @@ import re
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
class RequestHandler(BaseHTTPRequestHandler): class RequestHandler(BaseHTTPRequestHandler):
@ -23,6 +24,9 @@ class RequestHandler(BaseHTTPRequestHandler):
self.router = Router() self.router = Router()
super().__init__(request, client_address, server) super().__init__(request, client_address, server)
def log_message(self, format, *args):
logger.debug("%s - - [%s] %s", self.address_string(), self.log_date_time_string(), format%args)
def do_GET(self): def do_GET(self):
self.router.route(self) self.router.route(self)