From 84ca40b2ea0d63ed1ff5f1eaa16eb4b7c7e3934d Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 6 Mar 2014 20:21:14 -0800 Subject: [PATCH] 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). --- irkerd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.26.2