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