Print statements are gone in Python 3, so this removes a barrier to
Python 3 support. It also makes the logging more consistent with
other errors (e.g. the StreamHandler will print it to stdout, while
the print statement was sending it to stderr).
self.target, time.asctime()))
self.queue.task_done()
elif self.status == "expired":
- print "We're expired but still running! This is a bug."
+ LOG.error(
+ "We're expired but still running! This is a bug.")
break
except Exception, e:
LOG.error("exception %s in thread for %s" % (e, self.target))