diff options
Diffstat (limited to 'irkerd')
-rwxr-xr-x | irkerd | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -1001,16 +1001,9 @@ if __name__ == '__main__': args = parser.parse_args() if not args.log_file and in_background(): - # The Linux, Mac, and FreeBSD values of the logging device. - logdev = [x for x in ('/dev/log', '/var/run/syslog', '/var/run/log') - if os.path.exists(x) and not os.path.isdir(x)] - if len(logdev) != 1: - sys.stderr.write("can't initialize log device, bailing out!\n") - raise SystemExit(1) # There's a case for falling back to address = ('localhost', 514) # But some systems (including OS X) disable this for security reasons. - handler = logging.handlers.SysLogHandler(address=logdev[0], - facility='daemon') + handler = logging.handlers.SysLogHandler(facility='daemon') else: handler = logging.StreamHandler() |