Skip to content

Commit

Permalink
chore: add debug logger
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Sep 11, 2023
1 parent 92c77f3 commit d2efede
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yearn/v2/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def load_registry(self):
if hasattr(r, 'releaseRegistry') and "ReleaseRegistryUpdated" in r.topics:
logs = get_logs_asap(str(r), [r.topics["ReleaseRegistryUpdated"]])
# Add all past and present Release Registries
registries.extend({contract(list(event.values())[0]) for event in decode_logs(logs)})
for rr in {event['NewRegistry'] for event in decode_logs(logs)}:
registries.append(contract(rr))
logger.debug("release registry %s found for registry %s", rr, r)
return registries

def load_from_ens(self):
Expand Down

0 comments on commit d2efede

Please sign in to comment.