Update for bookworm release

This commit is contained in:
Jeroen Oudshoorn
2023-12-15 09:36:00 +01:00
parent 73fe10c638
commit d5507cfbc3
5 changed files with 35 additions and 6 deletions

View File

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