From: Brian Warner Date: Tue, 25 Mar 2008 02:08:15 +0000 (-0700) Subject: encode.py: also record the size, along with plaintext_hash and SI X-Git-Tag: allmydata-tahoe-1.0.0~6 X-Git-Url: https://git.rkrishnan.org/pf/content/en/service/contact.html?a=commitdiff_plain;h=4b46f1cd5368820fea0b901457cd1069a32ebcfb;p=tahoe-lafs%2Ftahoe-lafs.git encode.py: also record the size, along with plaintext_hash and SI --- diff --git a/src/allmydata/encode.py b/src/allmydata/encode.py index 36656fdb..e8d1a1bf 100644 --- a/src/allmydata/encode.py +++ b/src/allmydata/encode.py @@ -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: