From 7944d2b30ab2ec7a0223849671b70d1dced9bb2b Mon Sep 17 00:00:00 2001 From: Daira Hopwood <daira@jacaranda.org> Date: Mon, 26 Oct 2015 18:51:09 +0000 Subject: [PATCH] Add counter for uploader.objects_not_uploaded. Signed-off-by: Daira Hopwood <daira@jacaranda.org> --- src/allmydata/frontends/magic_folder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 61275372..51750888 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -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, -- 2.45.2