I have an application using Flask and FlaskSocket.IO 2.8.4. When I initialise SocketIO, I am using
#[...]
logging.basicConfig(level=logging.DEBUG,format=\'
The reason the logging changes you are applying don't work is that the global changes you've applied via logging.basicConfig
take precedence.
Here is how you can override those defaults, just for the Socket.IO logger:
logging.getLogger('socketio').setLevel(logging.ERROR)
logging.getLogger('engineio').setLevel(logging.ERROR)
This will set both packages to log only errors.