From: W. Trevor King Date: Fri, 7 Mar 2014 04:21:15 +0000 (-0800) Subject: irkerd: Replace sys.stderr.write with LOG.error X-Git-Tag: 2.7~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=602989fdf67eb380add1087966a905b2f4294ad4;p=irker.git 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. --- 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