From cd3c2f3c84c0bdacabb8e5bc67732eb10cf844e9 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Wed, 10 Jun 2020 19:10:11 +0200 Subject: [PATCH] remove HTTP logging as it confuses users might be worth to log it to a file, if we ever need to debug it --- WebUI.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/WebUI.py b/WebUI.py index 5dd85f74..705ad012 100644 --- a/WebUI.py +++ b/WebUI.py @@ -119,7 +119,15 @@ class WaitingForUiException(Exception): webthread = None PORT = 5050 -Handler = partial(http.server.SimpleHTTPRequestHandler, +class RequestHandler(http.server.SimpleHTTPRequestHandler): + def log_request(self, code='-', size='-'): + pass + def log_message(self, format, *args): + pass + def log_date_time_string(self): + pass + +Handler = partial(RequestHandler, directory=Utils.local_path(os.path.join("data", "web", "public")))