Skip to content

Commit

Permalink
Merge pull request #7 from dlcs/feature/logging
Browse files Browse the repository at this point in the history
Log status_code when failed to ban
  • Loading branch information
donaldgray authored Oct 18, 2023
2 parents afcb20a + 58deb56 commit 6c2f649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion varnish-cleanup/cleanup_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _handle_message(received_message):
logger.debug(f"banned {id}")
else:
success = False
logger.error(f"failed to ban {id} - {response.content}")
logger.error(f"failed to ban {id} - {response.status_code} {response.text}")

return success

Expand Down

0 comments on commit 6c2f649

Please sign in to comment.