]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
SFTP: log when a sync completes.
authordavid-sarah <david-sarah@jacaranda.org>
Sun, 30 May 2010 05:18:40 +0000 (22:18 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Sun, 30 May 2010 05:18:40 +0000 (22:18 -0700)
src/allmydata/frontends/sftpd.py

index 0c64923cebec74ba70a34faaaa309aefbab128e7..5c62f9d64bd4d735ef1e9079af6d39512d6e60db 100644 (file)
@@ -714,6 +714,10 @@ class GeneralSFTPFile(PrefixingLogMixin):
 
         d = defer.Deferred()
         self.async.addBoth(eventually_callback(d))
+        def _done(res):
+            if noisy: self.log("_done(%r) in .sync()" % (res,), level=NOISY)
+            return res
+        d.addBoth(_done)
         return d
 
     def readChunk(self, offset, length):