1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

further minor logging improvements

This commit is contained in:
Seth Schoen
2012-11-18 22:37:20 -08:00
parent 2d6af52d21
commit 1bb8dcfacc
2 changed files with 4 additions and 2 deletions

View File

@@ -240,6 +240,7 @@ class session(object):
csr = m.request.csr
sig = m.request.sig
self.log("new session from %s" % web.ctx.ip)
self.log("full session ID: %s" % self.id)
# Check whether we are the intended recipient of the request. Doing this
# before the hashcash check is more work for the server but gives a more
# helpful error message (because the hashcash will be wrong automatically

View File

@@ -65,8 +65,9 @@ def testchallenge(session):
dvsni_ext = r.hget(challenge, "dvsni:ext")
direct_result, direct_reason, direct_peername = verify_challenge(name, dvsni_r, dvsni_nonce, False)
proxy_result, proxy_reason, proxy_peername = verify_challenge(name, dvsni_r, dvsni_nonce, True)
log("\t...direct probe: %s (%s) to %s" % (direct_result, direct_reason, direct_peername), session)
log("\tTor proxy probe: %s (%s)" % (proxy_result, proxy_reason), session)
log("\t* direct probe: %s (%s)" % (direct_result, direct_reason), session)
log("\t* probe was issued to %s" % direct_peername, session)
log("\t* Tor proxy probe: %s (%s)" % (proxy_result, proxy_reason), session)
if direct_result and proxy_result:
r.hset(challenge, "satisfied", True)
else: