From: W. Trevor King Date: Fri, 7 Mar 2014 04:21:14 +0000 (-0800) Subject: irkerd: Replace a print statement with LOG.error X-Git-Tag: 2.7~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=84ca40b2ea0d63ed1ff5f1eaa16eb4b7c7e3934d;p=irker.git irkerd: Replace a print statement with LOG.error 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). --- diff --git a/irkerd b/irkerd index bb23f9a..60e39a8 100755 --- a/irkerd +++ b/irkerd @@ -577,7 +577,8 @@ class Connection: 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))