From 602989fdf67eb380add1087966a905b2f4294ad4 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 6 Mar 2014 20:21:15 -0800 Subject: [PATCH] irkerd: Replace sys.stderr.write with LOG.error Thie makes logging more consistent with other errors (e.g. you can adjust the logging Handler and get all the errors sent to syslog or a file). I also removed the 'irkerd: ' prefix; if we want that, I think we should add it to all logged messages by using a custom string in the logging Formatter. --- irkerd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irkerd b/irkerd index 60e39a8..a84d265 100755 --- a/irkerd +++ b/irkerd @@ -929,6 +929,6 @@ if __name__ == '__main__': except KeyboardInterrupt: raise SystemExit(1) except socket.error, e: - sys.stderr.write("irkerd: server launch failed: %r\n" % e) + LOG.error("server launch failed: %r\n" % e) # end -- 2.26.2