From f1d70567e4666445de5286e9a38cb57ef00e4893 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 26 Aug 2022 18:17:12 +0200 Subject: [PATCH] remove chat logging --- files/routes/chat.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index 49f0a75a4..dc1bf8c70 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -11,13 +11,19 @@ from flask import render_template, make_response, send_from_directory import sys import atexit -socketio = SocketIO( - app, - async_mode='gevent', - logger=True, - engineio_logger=True, - debug=True -) +if SITE == 'localhost': + socketio = SocketIO( + app, + async_mode='gevent', + logger=True, + engineio_logger=True, + debug=True + ) +else: + socketio = SocketIO( + app, + async_mode='gevent', + ) typing = [] online = []