From 6041e8a4ac92f082751d41e671b82892754f8366 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Fri, 16 Apr 2021 20:53:14 +0100 Subject: [PATCH] Don't disable flask logging in prod. --- server.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/server.py b/server.py index e565788..e43a63a 100644 --- a/server.py +++ b/server.py @@ -51,9 +51,6 @@ class BAPSicleServer: startServer() - # def __del__(self): - # stopServer() - def get_flask(self): return app @@ -613,8 +610,9 @@ def startServer(): setproctitle(process_title) CORS(app, supports_credentials=True) # Allow ALL CORS!!! - log = logging.getLogger("werkzeug") - log.disabled = True + if not isBundelled(): + log = logging.getLogger("werkzeug") + log.disabled = True app.logger.disabled = True app.run(