]> arthur.barton.de Git - bup.git/commitdiff
cmd/server: add a debug message saying which object caused a suggestion.
authorAvery Pennarun <apenwarr@gmail.com>
Thu, 17 Feb 2011 12:54:13 +0000 (04:54 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 17 Feb 2011 12:54:13 +0000 (04:54 -0800)
Let's use this to try to debug Aneurin's problem (and potentially others).

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
cmd/server-cmd.py

index 5c9858a7503770c15d282e7c0eebfb3c38a2a60b..ff4db47788e34697742c179852847e94eb573db6 100755 (executable)
@@ -102,6 +102,8 @@ def receive_objects_v2(conn, junk):
                 (dir,name) = os.path.split(oldpack)
                 if not (name in suggested):
                     debug1("bup server: suggesting index %s\n" % name)
+                    debug1("bup server:   because of object %s\n"
+                           % shar.encode('hex'))
                     conn.write('index %s\n' % name)
                     suggested.add(name)
                 continue