Skip to content
Snippets Groups Projects
Commit 84ca40b2 authored by W. Trevor King's avatar W. Trevor King Committed by Eric S. Raymond
Browse files

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).
parent ccd311c5
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment