Add counter for uploader.objects_not_uploaded.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2015-10-26 18:51:09 +00:00 committed by Brian Warner
parent 95e2961a2e
commit e4082a45d3

View File

@ -325,7 +325,8 @@ class Uploader(QueueMixin):
elif self._db.is_new_file(pathinfo, relpath_u):
new_version = current_version + 1
else:
self._log("ignoring {}".format(relpath_u))
self._log("Not uploading '{0}'".format(relpath_u))
self._count('objects_not_uploaded')
return
metadata = { 'version': new_version,
@ -372,6 +373,8 @@ class Uploader(QueueMixin):
elif self._db.is_new_file(pathinfo, relpath_u):
new_version = current_version + 1
else:
self._log("Not uploading '{0}'".format(relpath_u))
self._count('objects_not_uploaded')
return None
metadata = { 'version': new_version,