]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
helper: log SI in ciphertext-read-failed message
authorBrian Warner <warner@allmydata.com>
Tue, 15 Apr 2008 02:41:23 +0000 (19:41 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 15 Apr 2008 02:41:23 +0000 (19:41 -0700)
src/allmydata/offloaded.py

index 4a298f1fec26d52d2b7ed84b26a2433bdc11f61a..6cc2e9c49703d03997b1ad23650bc634f24aeb19 100644 (file)
@@ -365,7 +365,8 @@ class CHKCiphertextFetcher(AskUntilSuccessMixin):
             else:
                 self._loop(fire_when_done)
         def _err(f):
-            self.log("ciphertext read failed", failure=f, level=log.UNUSUAL)
+            self.log(format="[%(si)s] ciphertext read failed",
+                     si=self._upload_id, failure=f, level=log.UNUSUAL)
             fire_when_done.errback(f)
         d.addCallbacks(_done, _err)
         return None