Skip to content

Commit 6c2f649

Browse files
authored
Merge pull request #7 from dlcs/feature/logging
Log status_code when failed to ban
2 parents afcb20a + 58deb56 commit 6c2f649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

varnish-cleanup/cleanup_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _handle_message(received_message):
6565
logger.debug(f"banned {id}")
6666
else:
6767
success = False
68-
logger.error(f"failed to ban {id} - {response.content}")
68+
logger.error(f"failed to ban {id} - {response.status_code} {response.text}")
6969

7070
return success
7171

0 commit comments

Comments
 (0)