From a0fa21e442796d590342aecb97d9c969f213ca44 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Mon, 14 Apr 2008 19:41:23 -0700 Subject: [PATCH] helper: log SI in ciphertext-read-failed message --- src/allmydata/offloaded.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/allmydata/offloaded.py b/src/allmydata/offloaded.py index 4a298f1fe..6cc2e9c49 100644 --- a/src/allmydata/offloaded.py +++ b/src/allmydata/offloaded.py @@ -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