ruslanmv commited on
Commit
70142d0
1 Parent(s): b688782

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -13,7 +13,9 @@ eventlet.monkey_patch()
13
  logging.getLogger('socketio').setLevel(logging.ERROR)
14
  logging.getLogger('engineio').setLevel(logging.ERROR)
15
  logging.getLogger('eventlet.wsgi.server').setLevel(logging.ERROR)
16
-
 
 
17
  app = Flask(__name__)
18
  app.config['SECRET_KEY'] = 'your_secret_key'
19
  socketio = SocketIO(app, async_mode='eventlet')
@@ -156,4 +158,4 @@ def reset_quiz():
156
  participant["score"] = 0
157
 
158
  if __name__ == '__main__':
159
- socketio.run(app, host='0.0.0.0', port=7860, debug=True)
 
13
  logging.getLogger('socketio').setLevel(logging.ERROR)
14
  logging.getLogger('engineio').setLevel(logging.ERROR)
15
  logging.getLogger('eventlet.wsgi.server').setLevel(logging.ERROR)
16
+ # Suppress eventlet logs
17
+ logging.getLogger('eventlet.wsgi.server').setLevel(logging.ERROR)
18
+ eventlet.wsgi.logger = None # Disable eventlet's logging
19
  app = Flask(__name__)
20
  app.config['SECRET_KEY'] = 'your_secret_key'
21
  socketio = SocketIO(app, async_mode='eventlet')
 
158
  participant["score"] = 0
159
 
160
  if __name__ == '__main__':
161
+ socketio.run(app, host='0.0.0.0', port=7860, debug=True, log_output=False)