From: David Stainton Date: Sat, 29 Aug 2015 11:29:47 +0000 (+0200) Subject: more debugging print statements X-Git-Url: https://git.rkrishnan.org/listings/index.html?a=commitdiff_plain;h=04b6e780a64b24fb3e5f7576cb5d1a2bac8d059d;p=tahoe-lafs%2Ftahoe-lafs.git more debugging print statements --- 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