Add websocket logging in attempt to debug disconnect issue from esp32
This commit is contained in:
3
app.py
3
app.py
@@ -15,7 +15,8 @@ app = Flask(__name__)
|
|||||||
app.config['SECRET_KEY'] = 'secret!'
|
app.config['SECRET_KEY'] = 'secret!'
|
||||||
jinja_partials.register_extensions(app)
|
jinja_partials.register_extensions(app)
|
||||||
htmx = HTMX(app)
|
htmx = HTMX(app)
|
||||||
socketio = SocketIO(app, cors_allowed_origins='*')
|
socketio = SocketIO(app, cors_allowed_origins='*',
|
||||||
|
logger=True, engineio_logger=True)
|
||||||
|
|
||||||
|
|
||||||
@app.after_request
|
@app.after_request
|
||||||
|
|||||||
Reference in New Issue
Block a user