From ae0e4a422a447590ca98e36058fe9d1d78b92c90 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Mon, 13 Aug 2012 00:36:32 -0700 Subject: [PATCH] try to failure reason textual instead of numeric --- server-ca/chocolate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server-ca/chocolate.py b/server-ca/chocolate.py index a8da557ff..a6ebf61a8 100755 --- a/server-ca/chocolate.py +++ b/server-ca/chocolate.py @@ -326,10 +326,11 @@ class session(object): if debug: print "%s: %s" % (self.id, msg) def die(self, r, reason, uri=None): - self.log("Session from %s died for reason %s" % (web.ctx.ip, reason)) self.kill() r.failure.cause = reason if uri: r.failure.URI = uri + self.log("Session from %s died for reason %s" % (web.ctx.ip, str(r.failure).split(":")[0].strip()) + if uri: self.log("error URI: %s" % uri) def handleclientfailure(self, m, r): if r.failure.IsInitialized(): return