Skip to content

Commit

Permalink
fix: debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mraniki committed Apr 13, 2023
1 parent c728ac0 commit 38a6027
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dxsp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from dxsp.assets.blockchains import blockchains

logger = logging.getLogger(__name__).addHandler(logging.NullHandler())



class DexSwap:
Expand All @@ -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
Expand Down

0 comments on commit 38a6027

Please sign in to comment.