This commit is contained in:
Jeroen Oudshoorn
2024-01-05 14:17:51 +01:00
parent 0931a8c10a
commit e28261663f
4 changed files with 13 additions and 3 deletions

View File

@ -8,7 +8,9 @@ from functools import wraps
# https://stackoverflow.com/questions/14888799/disable-console-messages-in-flask-server
logging.getLogger('werkzeug').setLevel(logging.ERROR)
os.environ['WERKZEUG_RUN_MAIN'] = 'true'
# Set to false, on bookworm it wouldn't load the flask server for webui
os.environ['WERKZEUG_RUN_MAIN'] = 'false'
import pwnagotchi
import pwnagotchi.grid as grid

View File

@ -11,8 +11,8 @@ from pwnagotchi.ui.web.handler import Handler
# https://stackoverflow.com/questions/14888799/disable-console-messages-in-flask-server
logging.getLogger('werkzeug').setLevel(logging.ERROR)
# Commented this out, on bookworm it wouldnt load the flask server for webui
os.environ['WERKZEUG_RUN_MAIN'] = 'true'
# Set to false, on bookworm it wouldn't load the flask server for webui
os.environ['WERKZEUG_RUN_MAIN'] = 'false'
class Server: