If you want to suppress the logs from socket.io
my_log = logging.getLogger('werkzeug') # create a log object,
my_log.setLevel(logging.ERROR)
socketio.run(app,log=my_log) # pass this log object while running the flask socket.