New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SysLogHandler does not support IPv6 destinations #74563
Comments
The attached test script works fine with IPv4 syslog: When running the attached script with python 3.5.2 on Ubuntu 16.04, received the following error: $ python3 test_syslog.py ::1
--- Logging error Traceback (most recent call last):
File "/usr/lib/python3.5/logging/handlers.py", line 908, in emit
self.socket.sendto(msg, self.address)
socket.gaierror: [Errno -9] Address family for hostname not supported
Call stack:
File "test_syslog.py", line 16, in <module>
logging.info("Test Syslog with IPv6")
Message: 'Test Syslog with IPv6'
Arguments: () Similar error in python 2.7.10: $ python test_syslog.py ::1
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/handlers.py", line 864, in emit
self.socket.sendto(msg, self.address)
gaierror: [Errno -9] Address family for hostname not supported
Logged from file test_syslog.py, line 16 |
calcheng
mannequin
added
stdlib
Python modules in the Lib dir
type-bug
An unexpected behavior, bug, or error
labels
May 16, 2017
Thanks calcheng for your report and Vinay for the review. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: