Log server timestamp on message
This commit is contained in:
3
app.py
3
app.py
@@ -35,7 +35,8 @@ def response_minify(response):
|
||||
|
||||
@socketio.on('message')
|
||||
def handle_message(data):
|
||||
print('received message: ' + data)
|
||||
print('server ts: ' + datetime.datetime.now().replace(
|
||||
microsecond=0).isoformat() + ', message: ' + data)
|
||||
|
||||
|
||||
@app.route("/api/status", methods=['GET', 'POST'])
|
||||
|
||||
Reference in New Issue
Block a user