From 0b47fce1cba23b1a6b7c93ae821ecd8bbbca2ca8 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 3 Aug 2016 12:16:06 -0400 Subject: [PATCH] Add logging when Swift deletion fails --- storage/swift.py | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/swift.py b/storage/swift.py index 8e206f23f..3c58ce4b5 100644 --- a/storage/swift.py +++ b/storage/swift.py @@ -201,6 +201,7 @@ class SwiftStorage(BaseStorage): try: self._get_connection().delete_object(self._swift_container, path) except Exception: + logger.exception('Could not delete path %s', path) raise IOError('Cannot delete path: %s' % path) def _random_checksum(self, count):