tone down http logging
This commit is contained in:
parent
cfb4208db2
commit
8b9121a5c1
@ -16,6 +16,7 @@ import re
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.setLevel(logging.INFO)
|
||||
|
||||
|
||||
class RequestHandler(BaseHTTPRequestHandler):
|
||||
@ -23,6 +24,9 @@ class RequestHandler(BaseHTTPRequestHandler):
|
||||
self.router = Router()
|
||||
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):
|
||||
self.router.route(self)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user