Add object replicator's succeeded and failed counts in log

account-replicator and container-replicator outputted the
following info in log.
info account-replicator: 17 successes, 4 failures
info container-replicator: 178 successes, 29 failures

But there is no output info for object-replicator. This info
is important to check replicator's status from log.

So this patch adds object-replicator's succeeded and failed
counts in log like account-replicator and container-replicator.

Change-Id: I7fbaf161540bdb06c0a65a1032aae83764bd970c
This commit is contained in:
Hisashi Osanai 2015-12-25 14:00:16 +09:00
parent 53c4735b02
commit 4691d0592f

View File

@ -506,6 +506,9 @@ class ObjectReplicator(Daemon):
'remaining': '%d%s' % compute_eta(self.start,
self.replication_count,
self.job_count)})
self.logger.info(_('%(success)s successes, %(failure)s failures')
% self.stats)
if self.suffix_count:
self.logger.info(
_("%(checked)d suffixes checked - "