Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,13 @@ import base64
|
|
6 |
from io import BytesIO
|
7 |
import random
|
8 |
import eventlet
|
9 |
-
|
10 |
# Force eventlet to be used as the async mode for Flask-SocketIO
|
11 |
eventlet.monkey_patch()
|
|
|
|
|
|
|
|
|
12 |
|
13 |
app = Flask(__name__)
|
14 |
app.config['SECRET_KEY'] = 'your_secret_key'
|
|
|
6 |
from io import BytesIO
|
7 |
import random
|
8 |
import eventlet
|
9 |
+
import logging
|
10 |
# Force eventlet to be used as the async mode for Flask-SocketIO
|
11 |
eventlet.monkey_patch()
|
12 |
+
# Configure the logging level
|
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'
|