New submission from Mike Lundy:

The changed merged from http://bugs.python.org/issue16168 causes a regression 
in SysLogHandler behavior. The socktype of /dev/log is dependent on syslog 
configuration, and the fallback behavior (trying SOCK_DGRAM and then 
SOCK_STREAM if the former failed) was very useful.

A better fix for this would preserve the fallback behavior in cases where the 
caller has not specifically requested a socktype. I've attached a patch with 
one such approach.

----------
components: Library (Lib)
files: 0001-Restore-SysLogHandler-fallback-for-AF_UNIX-sockets.patch
keywords: patch
messages: 187347
nosy: Mike.Lundy
priority: normal
severity: normal
status: open
title: backwards-incompatible change in SysLogHandler with unix domain sockets
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4
Added file: 
http://bugs.python.org/file29937/0001-Restore-SysLogHandler-fallback-for-AF_UNIX-sockets.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17795>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to