tone down http logging
This commit is contained in:
parent
cfb4208db2
commit
8b9121a5c1
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user