Skip to content

Commit

Permalink
feat: more debug loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Sep 11, 2023
1 parent 94e2849 commit 10a6f36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yearn/v2/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def process_events(self, events):
for event in events:
# hack to make camels to snakes
event._ordered = [OrderedDict({inflection.underscore(k): v for k, v in od.items()}) for od in event._ordered]
logger.debug("%s %s %s", event.address, event.name, dict(event))
logger.debug("starting to process %s for %s: %s", event.name, event.address, dict(event))
if event.name == "NewGovernance":
self.governance = event["governance"]

Expand Down Expand Up @@ -175,6 +175,7 @@ def process_events(self, events):

if event.name == "StakingPoolAdded":
self._staking_pools[event["token"]] = event["staking_pool"]
logger.debug("done processing %s for %s: %s", event.name, event.address, dict(event))


def vault_from_event(self, event):
Expand Down

0 comments on commit 10a6f36

Please sign in to comment.