From 04b6e780a64b24fb3e5f7576cb5d1a2bac8d059d Mon Sep 17 00:00:00 2001 From: David Stainton Date: Sat, 29 Aug 2015 13:29:47 +0200 Subject: [PATCH] more debugging print statements --- src/allmydata/frontends/magic_folder.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 7c43ea5a..44def8c9 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -460,16 +460,17 @@ class Downloader(QueueMixin): self._download_scan_batch[name] = [(file_node, metadata)] def _scan_remote(self, nickname, dirnode): + print "------------------_scan_remote----------------------" d = dirnode.list() def scan_listing(listing_map): for name in listing_map.keys(): file_node, metadata = listing_map[name] local_version = self._get_local_latest(name) remote_version = metadata.get('version', None) - #print "%r has local version %r, remote version %r" % (name, local_version, remote_version) + print "%r has local version %r, remote version %r" % (name, local_version, remote_version) if local_version is None or remote_version is None or local_version < remote_version: + print "added to download queue\n" self._append_to_batch(name, file_node, metadata) - d.addCallback(scan_listing) return d -- 2.45.2