Merge "Fall back to UDP if /dev/log does not exist."
This commit is contained in:
1 changed files with 2 additions and 1 deletions
@@ -604,7 +604,8 @@ def get_logger(conf, name=None, log_to_console=False, log_route=None,
try:
handler = SysLogHandler(address=log_address, facility=facility)
except socket.error, e:
if e.errno != errno.ENOTSOCK: # Socket operation on non-socket
# Either /dev/log isn't a UNIX socket or it does not exist at all
if e.errno not in [errno.ENOTSOCK, errno.ENOENT]:
raise e
handler = SysLogHandler(facility=facility)
handler.setFormatter(formatter)
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.