From 38a6027abe2b5da01aabed9bb95fc96709abac4a Mon Sep 17 00:00:00 2001 From: mraniki <8766259+mraniki@users.noreply.github.com> Date: Thu, 13 Apr 2023 15:54:55 +0200 Subject: [PATCH] fix: debug mode --- dxsp/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dxsp/main.py b/dxsp/main.py index 867404f7..7375f74b 100644 --- a/dxsp/main.py +++ b/dxsp/main.py @@ -9,7 +9,7 @@ from dxsp.assets.blockchains import blockchains -logger = logging.getLogger(__name__).addHandler(logging.NullHandler()) + class DexSwap: @@ -28,9 +28,11 @@ def __init__(self, base_trading_symbol: str = None, amount_trading_option: int = 1, ): - logger.debug("dxsp setup started") + logging.getLogger(__name__).addHandler(logging.NullHandler()) + logging.debug(msg=f"DexSwap initiated for chain_id" {chain_id}) self.chain_id = int(chain_id) blockchain = blockchains[self.chain_id ] + logging.debug(msg=f"blockchain details" {blockchain}) self.wallet_address = wallet_address self.private_key = private_key