Browse Source

swift-account-audit: Log the bad status

Change-Id: Ib28d1948a571acf31926df82dd8c24910c227053
changes/42/785542/1
Tim Burke 2 months ago
parent
commit
c8de76c7fd
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      bin/swift-account-audit

+ 6
- 4
bin/swift-account-audit View File

@ -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(


Loading…
Cancel
Save