Skip to content

Commit

Permalink
fix: Omit path from log message (not set until extension runs)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Apr 10, 2024
1 parent 68cc827 commit 5176f71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kingfisher_scrapy/log_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ def dropped(self, item, *args):

def _omit_data(self, method, item, *args):
"""
Omits an item's `data` value from the log message.
Omits an item's `data` and `path` (not set yet) values from the log message.
"""
item = item.__dict__.copy()
item.pop('data', None)
item.pop('path', None)
return getattr(super(), method)(item, *args)

0 comments on commit 5176f71

Please sign in to comment.