Skip to content

Commit

Permalink
Added debug logging to sitemap_filter (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
iannesbitt committed Nov 10, 2023
1 parent 3e16aac commit a2235cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions soscan/spiders/jsonldspider.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def sitemap_filter(self, entries):

if self.lastmod_filter is not None and ts is not None:
if ts > self.lastmod_filter:
self.logger.debug(f'Yielding record {i}: {entry}')
yield entry
else:
self.logger.debug(f'lastmod_filter skipping record {i}: {entry}')
Expand All @@ -143,6 +144,7 @@ def sitemap_filter(self, entries):
if (self.start_point is not None) and (self.start_point < i):
if i == 1:
self.logger.info(f'Skipping to start_point at record {self.start_point}')
self.logger.debug(f'start_point skipping record {i}: {entry}')

def parse(self, response, **kwargs):
"""
Expand Down

0 comments on commit a2235cb

Please sign in to comment.