From bb4bf70fb1671f81958e0ee19a6c03bc62fea527 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Thu, 22 Feb 2018 01:49:08 +0000 Subject: [PATCH] Add engineio logging config option --- webapp/config.example.py | 1 + webapp/titanembeds/utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/config.example.py b/webapp/config.example.py index 55ed467..96a4e09 100644 --- a/webapp/config.example.py +++ b/webapp/config.example.py @@ -23,6 +23,7 @@ config = { 'database-uri': "driver://username:password@host:port/database", 'redis-uri': "redis://", 'websockets-mode': "LITTERALLY None or eventlet or gevent", + 'engineio-logging': False, # https://titanembeds.com/api/webhook/discordbotsorg/vote/ 'discordbotsorg-webhook-secret': "Secret appended to the discord bots hook url", diff --git a/webapp/titanembeds/utils.py b/webapp/titanembeds/utils.py index 9b31a2b..8ddb40d 100644 --- a/webapp/titanembeds/utils.py +++ b/webapp/titanembeds/utils.py @@ -323,7 +323,7 @@ def language_code_list(): return codes rate_limiter = Limiter(key_func=get_client_ipaddr) # Default limit by ip address -socketio = SocketIO() +socketio = SocketIO(engineio_logger=config.get("engineio-logging", False)) babel = Babel() @socketio.on_error_default # disconnect on all errors