Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,15 @@ from io import BytesIO
|
|
10 |
import random
|
11 |
import logging
|
12 |
|
|
|
|
|
|
|
|
|
13 |
# Configure the logging level
|
14 |
logging.getLogger('eventlet.wsgi.server').setLevel(logging.ERROR)
|
|
|
|
|
|
|
15 |
app = Flask(__name__)
|
16 |
app.config['SECRET_KEY'] = 'your_secret_key'
|
17 |
socketio = SocketIO(app, async_mode='eventlet')
|
@@ -154,4 +161,4 @@ def reset_quiz():
|
|
154 |
participant["score"] = 0
|
155 |
|
156 |
if __name__ == '__main__':
|
157 |
-
socketio.run(app, host='0.0.0.0', port=7860, debug=True)
|
|
|
10 |
import random
|
11 |
import logging
|
12 |
|
13 |
+
# Suppress eventlet logs by disabling the default logger
|
14 |
+
eventlet.wsgi.server = lambda *args, **kwargs: None
|
15 |
+
|
16 |
+
|
17 |
# Configure the logging level
|
18 |
logging.getLogger('eventlet.wsgi.server').setLevel(logging.ERROR)
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
app = Flask(__name__)
|
23 |
app.config['SECRET_KEY'] = 'your_secret_key'
|
24 |
socketio = SocketIO(app, async_mode='eventlet')
|
|
|
161 |
participant["score"] = 0
|
162 |
|
163 |
if __name__ == '__main__':
|
164 |
+
socketio.run(app, host='0.0.0.0', port=7860, debug=True, log_output=False)
|