From bee02ab0cb5f11f1a3662bfe1663d408f15401f4 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Fri, 12 Jan 2024 21:07:11 +0100 Subject: [PATCH] UpSet werkzeug to false --- pwnagotchi/ui/web/handler.py | 2 +- pwnagotchi/ui/web/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/ui/web/handler.py b/pwnagotchi/ui/web/handler.py index da1f6748..766a9902 100644 --- a/pwnagotchi/ui/web/handler.py +++ b/pwnagotchi/ui/web/handler.py @@ -10,7 +10,7 @@ import flask # https://stackoverflow.com/questions/14888799/disable-console-messages-in-flask-server logging.getLogger('werkzeug').setLevel(logging.ERROR) -os.environ['WERKZEUG_RUN_MAIN'] = 'true' +os.environ['WERKZEUG_RUN_MAIN'] = 'false' import pwnagotchi import pwnagotchi.grid as grid diff --git a/pwnagotchi/ui/web/server.py b/pwnagotchi/ui/web/server.py index b3fd0b62..d8b5fe68 100644 --- a/pwnagotchi/ui/web/server.py +++ b/pwnagotchi/ui/web/server.py @@ -5,7 +5,7 @@ import os # https://stackoverflow.com/questions/14888799/disable-console-messages-in-flask-server logging.getLogger('werkzeug').setLevel(logging.ERROR) -os.environ['WERKZEUG_RUN_MAIN'] = 'true' +os.environ['WERKZEUG_RUN_MAIN'] = 'false' from flask import Flask from flask_cors import CORS