]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
encode.py: log the contents of the uri_extension block
authorBrian Warner <warner@allmydata.com>
Thu, 24 Jan 2008 01:08:04 +0000 (18:08 -0700)
committerBrian Warner <warner@allmydata.com>
Thu, 24 Jan 2008 01:08:04 +0000 (18:08 -0700)
src/allmydata/encode.py

index 0d63a6fc489e542e1a83b1a888bbd158f3bcfdd7..b99462970a95eab7e2a5d9f6d9c350eeb65b3afb 100644 (file)
@@ -553,12 +553,19 @@ class Encoder(object):
         return d
 
     def send_uri_extension_to_all_shareholders(self):
-        self.log("sending uri_extension")
+        lp = self.log("sending uri_extension")
         for k in ('crypttext_root_hash', 'crypttext_hash',
                   'plaintext_root_hash', 'plaintext_hash',
                   ):
             assert k in self.uri_extension_data
         uri_extension = uri.pack_extension(self.uri_extension_data)
+        ed = {}
+        for k,v in self.uri_extension_data.items():
+            if k.endswith("hash"):
+                ed[k] = idlib.b2a(v)
+            else:
+                ed[k] = v
+        self.log("uri_extension_data is %s" % (ed,), level=log.NOISY, parent=lp)
         self.uri_extension_hash = hashutil.uri_extension_hash(uri_extension)
         dl = []
         for shareid in self.landlords.keys():