Skip to content

Commit

Permalink
fix in a log message
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubkrafka committed Jun 2, 2021
1 parent fbabf97 commit 0ab0f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kingfisher_scrapy/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def spider_closed(self, spider, reason):
response = self._post_sync("api/v1/close_collection", data)
if not response.ok:
spider.logger.warning(
"Failed to post close collection. API status code: {}".format(response.code))
"Failed to post close collection. API status code: {}".format(response.status_code))
else:
spider.logger.info("Closed collection in Kingfisher process with id {}".format(self.collection_id))

Expand Down

0 comments on commit 0ab0f9e

Please sign in to comment.