Package: rsyslog
Version: 5.8.6-1
Severity: normal
Steps to reproduce:
1) cat > testcase.py <<EOF
import logging
from logging.handlers import SysLogHandler
logger = logging.getLogger()
logger.setLevel(logging.INFO)
syslog = SysLogHandler(address='/dev/log')
formatter = logging.Formatter('%(name)s: %(levelname)s %(message)s')
syslog.setFormatter(formatter)
logger.addHandler(syslog)
logger.info("123456789012345678901234567890 testcase")
EOF
2) python testcase.py
Expected results (seen in rsyslog 4.6.4-2):
2) /var/log/syslog contains
Jan 3 18:31:52 lindi1 root: INFO 123456789012345678901234567890 foo
Actual results:
2) /var/log/syslog contains
Jan 3 18:38:11 lindi1 6789012345678901234567890 foo
More info:
1) In both cases
$ strace -e sendto -s4096 python testcase.py
shows
sendto(3, "<14>root: INFO 123456789012345678901234567890 testcase\0", 55, 0,
NULL, 0) = 55
2) Downgrading to rsyslog 5.8.5-1 seems to help.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/6 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages rsyslog depends on:
ii initscripts 2.88dsf-16
ii libc6 2.13-23
ii lsb-base 3.2-28
ii zlib1g 1:1.2.3.4.dfsg-3
Versions of packages rsyslog recommends:
ii logrotate 3.8.1-1
Versions of packages rsyslog suggests:
pn rsyslog-doc <none>
pn rsyslog-gnutls <none>
pn rsyslog-gssapi <none>
pn rsyslog-mysql | rsyslog-pgsql <none>
pn rsyslog-relp <none>
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]