From 4b46f1cd5368820fea0b901457cd1069a32ebcfb Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Mon, 24 Mar 2008 19:08:15 -0700 Subject: [PATCH] encode.py: also record the size, along with plaintext_hash and SI --- src/allmydata/encode.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: -- 2.45.2