helper: log SI in ciphertext-read-failed message

This commit is contained in:
Brian Warner 2008-04-14 19:41:23 -07:00
parent a719b5060f
commit a0fa21e442

View 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