more appropriate verbosity

This commit is contained in:
Seth Schoen
2012-07-13 22:55:38 -07:00
parent 32c2ba8e71
commit 2f21a92e82
+4 -2
View File
@@ -194,7 +194,7 @@ def testchallenge(session):
# response to an empty list of challenges (even though # response to an empty list of challenges (even though
# the daemon that put this session on the queue should # the daemon that put this session on the queue should
# also have implicitly guaranteed this). # 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.hset(session, "state", "issue")
r.lpush("pending-issue", session) r.lpush("pending-issue", session)
else: else:
@@ -235,7 +235,9 @@ def issue(session):
r.lpush("pending-issue", session) r.lpush("pending-issue", session)
while True: while True:
if clean_shutdown: break if clean_shutdown:
print "daemon exiting cleanly"
break
session = r.rpop("pending-makechallenge") session = r.rpop("pending-makechallenge")
if session: if session:
if debug: print "going to makechallenge for", session if debug: print "going to makechallenge for", session