Suppress Flask development server warning

This commit is contained in:
Reditus committed 2026-05-12 04:43:52 +01:00
1 parent ad757c8e12
commit 6d785b56df
1 file changed
+4 -1
+4 -1
View File
@@ -11,6 +11,9 @@ from app.factory import create_app
app, socketio = create_app()
if __name__ == '__main__':
import logging
logging.getLogger('werkzeug').setLevel(logging.ERROR)
settings = app.dune_settings
host = settings['dashboard']['host']
port = settings['dashboard']['port']
@@ -20,4 +23,4 @@ if __name__ == '__main__':
print(f" http://{host}:{port}")
print(f" Debug: {debug}\n")
socketio.run(app, host=host, port=port, debug=debug)
socketio.run(app, host=host, port=port, debug=debug, log_output=False)