Skip to content

Commit

Permalink
Do not print entire ix_lan dict to log
Browse files Browse the repository at this point in the history
  • Loading branch information
m-appel committed Dec 9, 2024
1 parent 4985ad7 commit effa98c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iyp/crawlers/peeringdb/ix.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def register_ix_membership(self):
if 'ixlan_set' in ix:
for ixlan in ix['ixlan_set']:
if ixlan['id'] not in self.ixlans:
logging.error(f'LAN not found: ixlan ID {ixlan["id"]} not in {self.ixlans}')
logging.error(f'LAN not found: ixlan ID {ixlan["id"]} not in self.ixlans dict')
continue

lan = self.ixlans[ixlan['id']]
Expand Down Expand Up @@ -249,7 +249,7 @@ def register_ix_membership(self):
if 'ixlan_set' in ix:
for ixlan in ix['ixlan_set']:
if ixlan['id'] not in self.ixlans:
logging.error(f'LAN not found: ixlan ID {ixlan["id"]} not in {self.ixlans}')
logging.error(f'LAN not found: ixlan ID {ixlan["id"]} not in self.ixlans dict')
continue

ix_qid = self.ix_id[ix['id']]
Expand Down

0 comments on commit effa98c

Please sign in to comment.