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:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user