]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Add counter for uploader.objects_not_uploaded.
authorDaira Hopwood <daira@jacaranda.org>
Mon, 26 Oct 2015 18:51:09 +0000 (18:51 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Mon, 28 Dec 2015 16:18:53 +0000 (16:18 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/magic_folder.py

index 6127537275c5602da9b17d94a28960fe0c5005e5..51750888cdd0b37e1f5a6d2ecabefc4450800bdc 100644 (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,