summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2021-04-08 17:19:13 -0700
committerTim Burke <tim.burke@gmail.com>2021-04-08 17:34:49 -0700
commitc8de76c7fdf1d7fc34066a27c9e974177d1e865a (patch)
treed408dd300d3bdb90fb0dfe277fdbc6143bf53edd /bin
parentd9a6fe4362852b07770c46b8ca549ea6f1475ae2 (diff)
downloadswift-c8de76c7fdf1d7fc34066a27c9e974177d1e865a.tar.gz
swift-account-audit: Log the bad status
Change-Id: Ib28d1948a571acf31926df82dd8c24910c227053
Diffstat (limited to 'bin')
-rwxr-xr-xbin/swift-account-audit10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/swift-account-audit b/bin/swift-account-audit
index a5a50dc1f..994492bb4 100755
--- a/bin/swift-account-audit
+++ b/bin/swift-account-audit
@@ -100,8 +100,9 @@ class Auditor(object):
if resp.status // 100 != 2:
self.object_not_found += 1
consistent = False
- print(' Bad status GETting object "%s" on %s/%s'
- % (path, node['ip'], node['device']))
+ print(' Bad status %s GETting object "%s" on %s/%s'
+ % (resp.status, path,
+ node['ip'], node['device']))
continue
if resp.getheader('ETag').strip('"') != calc_hash:
self.object_checksum_mismatch += 1
@@ -116,8 +117,9 @@ class Auditor(object):
if resp.status // 100 != 2:
self.object_not_found += 1
consistent = False
- print(' Bad status HEADing object "%s" on %s/%s'
- % (path, node['ip'], node['device']))
+ print(' Bad status %s HEADing object "%s" on %s/%s'
+ % (resp.status, path,
+ node['ip'], node['device']))
continue
override_etag = resp.getheader(