From: david-sarah Date: Sun, 30 May 2010 05:18:40 +0000 (-0700) Subject: SFTP: log when a sync completes. X-Git-Url: https://git.rkrishnan.org/pf/content/quickstart.html?a=commitdiff_plain;h=b9d3cf12b8f3851cbe13f965f8b854f610635838;p=tahoe-lafs%2Ftahoe-lafs.git SFTP: log when a sync completes. --- diff --git a/src/allmydata/frontends/sftpd.py b/src/allmydata/frontends/sftpd.py index 0c64923c..5c62f9d6 100644 --- a/src/allmydata/frontends/sftpd.py +++ b/src/allmydata/frontends/sftpd.py @@ -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):