From 2f21a92e821788efcfdfcc9dc7a0307a00213e65 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Fri, 13 Jul 2012 22:55:38 -0700 Subject: [PATCH] more appropriate verbosity --- server-ca/daemon.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server-ca/daemon.py b/server-ca/daemon.py index 856ca37f7..9ec679801 100644 --- a/server-ca/daemon.py +++ b/server-ca/daemon.py @@ -194,7 +194,7 @@ def testchallenge(session): # response to an empty list of challenges (even though # the daemon that put this session on the queue should # also have implicitly guaranteed this). - print "\tall satisfied, going to issue", session + if debug: print "\tall satisfied, going to issue", session r.hset(session, "state", "issue") r.lpush("pending-issue", session) else: @@ -235,7 +235,9 @@ def issue(session): r.lpush("pending-issue", session) while True: - if clean_shutdown: break + if clean_shutdown: + print "daemon exiting cleanly" + break session = r.rpop("pending-makechallenge") if session: if debug: print "going to makechallenge for", session