[New-bugs-announce] [issue8148] logging.SyslogHandler.emit()

Benjamin VENELLE report at bugs.python.org
Mon Mar 15 15:03:42 CET 2010


New submission from Benjamin VENELLE <kain94 at gmail.com>:

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

----------
components: Library (Lib)
messages: 101110
nosy: Kain94
severity: normal
status: open
title: logging.SyslogHandler.emit()
type: behavior
versions: Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8148>
_______________________________________


More information about the New-bugs-announce mailing list