Change default log_level value (from 'INFO' to 'ERROR'). Implement error event into AsyncIOEventEmitter. Add error logging.

This commit is contained in:
Davide Casale
2022-11-29 17:17:17 +01:00
parent b308bbacbd
commit e262c81f97
2 changed files with 4 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ class Constants(str, Enum):
PUB_WSS_HOST = "wss://api-pub.bitfinex.com/ws/2"
class Client(object):
def __init__(self, WSS_HOST: str = Constants.WSS_HOST, API_KEY: str = None, API_SECRET: str = None, log_level: str = "INFO"):
def __init__(self, WSS_HOST: str = Constants.WSS_HOST, API_KEY: str = None, API_SECRET: str = None, log_level: str = "ERROR"):
self.wss = BfxWebsocketClient(
host=WSS_HOST,
API_KEY=API_KEY,