Skip to content

Commit

Permalink
Provide further logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-spencer committed Sep 11, 2024
1 parent d7c85ca commit 734cba3
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pubwatch/feed_helper.py
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ async def read_feeds_file(feeds_file: str) -> list[FeedSpec]:
with open(feeds_file, "r", encoding="utf-8") as json_feeds:
feed_dict = json.loads(json_feeds.read())
logger.info("cer-feeds version: %s", feed_dict["meta"]["version"])
logger.info("number of feeds: %s", len(feed_dict["feeds"]))
logger.info("number of feeds in feeds file: %s", len(feed_dict["feeds"]))
feeds = []
for item in feed_dict["feeds"]:
feed = parse_obj_as(FeedSpec, item)
1 change: 1 addition & 0 deletions src/pubwatch/pubwatch.py
Original file line number Diff line number Diff line change
@@ -291,6 +291,7 @@ def collate_latest_timestamps(on_chain_feed_data: list) -> dict:
res[feed] = on_chain_time if res[feed] < on_chain_time else res[feed]
except KeyError:
res[feed] = on_chain_time
logger.info("existing on-chain feeds to compare: %s", len(set(res)))
return res


0 comments on commit 734cba3

Please sign in to comment.