This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: logging.SyslogHandler.emit()
Type: behavior Stage: test needed
Components: Library (Lib) Versions: Python 3.1
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: vinay.sajip Nosy List: Kain94, vinay.sajip
Priority: normal Keywords:

Created on 2010-03-15 14:03 by Kain94, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg101110 - (view) Author: Benjamin VENELLE (Kain94) Date: 2010-03-15 14:03
Hi,

In SyslogHandler class from logging package, emit() function calls socket.sendto() at line 785. Passing arguments are not in the right order due to flags parameter which is optional (@see http://docs.python.org/py3k/library/socket.html#socket.socket.sendto). It results in a TypeError exception when called -->

Traceback (most recent call last):
  File "C:\PROGRA~2\Python\31\lib\logging\handlers.py", line 785, in emit
    self.socket.sendto(msg, self.address)
TypeError: sendto() takes exactly 3 arguments (2 given)

Thanks.

PS: seen on a Windows 7 with Python 3.1.1
msg101139 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2010-03-16 00:06
This appears to be a duplicate of #5421.
History
Date User Action Args
2022-04-11 14:56:58adminsetgithub: 52395
2010-03-16 00:06:04vinay.sajipsetstatus: open -> closed
resolution: duplicate
messages: + msg101139
2010-03-15 15:10:28vinay.sajipsetassignee: vinay.sajip
2010-03-15 14:11:54brian.curtinsetpriority: normal
nosy: + vinay.sajip

stage: test needed
2010-03-15 14:03:39Kain94create