]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
encode.py: also record the size, along with plaintext_hash and SI
authorBrian Warner <warner@allmydata.com>
Tue, 25 Mar 2008 02:08:15 +0000 (19:08 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 25 Mar 2008 02:08:15 +0000 (19:08 -0700)
src/allmydata/encode.py

index 36656fdbefdfda3cd9a31c41c9f7ce211f020d2c..e8d1a1bfc77501882905d8feffeed619cf207d8f 100644 (file)
@@ -516,9 +516,10 @@ class Encoder(object):
         self.uri_extension_data["crypttext_hash"] = crypttext_hash
         d = self._uploadable.get_plaintext_hash()
         def _got(plaintext_hash):
-            self.log(format="plaintext_hash=%(plaintext_hash)s, SI=%(SI)s",
+            self.log(format="plaintext_hash=%(plaintext_hash)s, SI=%(SI)s, size=%(size)d",
                      plaintext_hash=base32.b2a(plaintext_hash),
-                     SI=storage.si_b2a(self._storage_index) )
+                     SI=storage.si_b2a(self._storage_index),
+                     size=self.file_size)
             return plaintext_hash
         d.addCallback(_got)
         if self.USE_PLAINTEXT_HASHES: