From: Avery Pennarun Date: Thu, 17 Feb 2011 12:54:13 +0000 (-0800) Subject: cmd/server: add a debug message saying which object caused a suggestion. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9c4c2dd9f1934658346212f5671df84c1dcb6a5e;p=packages%2Fb%2Fbup.git cmd/server: add a debug message saying which object caused a suggestion. Let's use this to try to debug Aneurin's problem (and potentially others). Signed-off-by: Avery Pennarun --- diff --git a/cmd/server-cmd.py b/cmd/server-cmd.py index 5c9858a..ff4db47 100755 --- a/cmd/server-cmd.py +++ b/cmd/server-cmd.py @@ -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