From b9d3cf12b8f3851cbe13f965f8b854f610635838 Mon Sep 17 00:00:00 2001
From: david-sarah <david-sarah@jacaranda.org>
Date: Sat, 29 May 2010 22:18:40 -0700
Subject: [PATCH] SFTP: log when a sync completes.

---
 src/allmydata/frontends/sftpd.py | 4 ++++
 1 file changed, 4 insertions(+)

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):
-- 
2.45.2