Skip to content

gh-70990: Support bytes addresses of Unix sockets in SysLogHandler#154500

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:fix-syslog-abstract-address
Open

gh-70990: Support bytes addresses of Unix sockets in SysLogHandler#154500
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:fix-syslog-abstract-address

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 22, 2026

Copy link
Copy Markdown
Member

SysLogHandler only recognized a str address as a Unix domain socket. Any bytes address raised ValueError.

The address is not interpreted by logging, it is passed to socket, so the check now tests whether the address is a (host, port) pair rather than enumerating the types socket accepts.

🤖 Generated with Claude Code

Only a str address was recognized as a Unix domain socket.  A bytes
address, which socket.bind() accepts, fell through to the (host, port)
branch and raised ValueError.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33712816 | 📁 Comparing 566e787 against main (3479e45)

  🔍 Preview build  

2 files changed
± library/logging.handlers.html
± whatsnew/changelog.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant