mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Add engineio logging config option
This commit is contained in:
		@@ -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/<secret here>
 | 
			
		||||
    'discordbotsorg-webhook-secret': "Secret appended to the discord bots hook url",
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user