Skip to content

Commit

Permalink
chore: print out exception
Browse files Browse the repository at this point in the history
  • Loading branch information
magicalne committed Apr 19, 2022
1 parent 6907901 commit 9730bc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agent/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def run(self):
self.ckb_indexer_url, self.gw_config,
LastBlockDetail["blocknumber"])
except:
logging.error("Failed to get custodian stats")
logging.exception("Failed to get custodian stats")
logging.info("Loading deposit stats")
try:
DepositCount, DepositCapacity = get_gw_stat_by_lock(
Expand All @@ -317,7 +317,7 @@ def run(self):
self.gw_config)
DepositCapacity = DepositCapacity / one_ckb
except:
logging.error("Failed to get deposit stats")
logging.exception("Failed to get deposit stats")
logging.info("Loading withdrawal stats")
try:
WithdrawalCount, WithdrawalCapacity = get_gw_stat_by_lock(
Expand All @@ -326,7 +326,7 @@ def run(self):
self.gw_config)
WithdrawalCapacity = WithdrawalCapacity / one_ckb
except:
logging.error("Failed to get withdrawal stats")
logging.exception("Failed to get withdrawal stats")


job = JobThread()
Expand Down

0 comments on commit 9730bc0

Please sign in to comment.