mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
Add counter for uploader.objects_not_uploaded.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
95e2961a2e
commit
e4082a45d3
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user