Add websocket logging in attempt to debug disconnect issue from esp32

This commit is contained in:
Peter Stockings
2023-01-04 14:58:58 +11:00
parent 06a279abe6
commit cc1ee982c5

3
app.py
View File

@@ -15,7 +15,8 @@ app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
jinja_partials.register_extensions(app)
htmx = HTMX(app)
socketio = SocketIO(app, cors_allowed_origins='*')
socketio = SocketIO(app, cors_allowed_origins='*',
logger=True, engineio_logger=True)
@app.after_request