mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Rename bfxapi._utils.logger to bfxapi._utils.logging (and update references).
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from typing import \
|
||||
TYPE_CHECKING, TypedDict, List, Literal, Optional
|
||||
|
||||
from bfxapi._utils.logger import ColorLogger
|
||||
from bfxapi._utils.logging import ColorLogger
|
||||
|
||||
from bfxapi.exceptions import IncompleteCredentialError
|
||||
|
||||
|
||||
@@ -75,20 +75,20 @@ class BfxWebSocketClient(Connection, Connection.Authenticable):
|
||||
self.__credentials, self.__timeout, self.__logger = \
|
||||
credentials, timeout, logger
|
||||
|
||||
self.__buckets: Dict[BfxWebSocketBucket, Optional["Task"]] = { }
|
||||
|
||||
self.__reconnection: Optional[_Reconnection] = None
|
||||
|
||||
self.__event_emitter = BfxEventEmitter(targets = \
|
||||
PublicChannelsHandler.ONCE_PER_SUBSCRIPTION + \
|
||||
["subscribed"])
|
||||
|
||||
self.__handler = AuthEventsHandler(\
|
||||
self.__handler = AuthEventsHandler( \
|
||||
event_emitter=self.__event_emitter)
|
||||
|
||||
self.__inputs = BfxWebSocketInputs(\
|
||||
self.__inputs = BfxWebSocketInputs( \
|
||||
handle_websocket_input=self.__handle_websocket_input)
|
||||
|
||||
self.__buckets: Dict[BfxWebSocketBucket, Optional["Task"]] = { }
|
||||
|
||||
self.__reconnection: Optional[_Reconnection] = None
|
||||
|
||||
@self.__event_emitter.on("error")
|
||||
def error(exception: Exception) -> None:
|
||||
header = f"{type(exception).__name__}: {str(exception)}"
|
||||
|
||||
Reference in New Issue
Block a user