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