[issue8451] syslog.syslog('msg') logs message with ident "python".
report at bugs.python.org
Mon Apr 19 07:26:40 CEST 2010
New submission from Sean Reifschneider <jafo at tummy.com>:
As discussed in this thread:
The syslog module is using the C argv as the program name, not the python sys.argv. So, in most cases this means that unless you explicitly set a ident, you get "python" as the ident. Not entirely helpful.
- Makes openlog arguments keyword args.
- Makes openlog ident argument optional.
- If ident is not passed to ident, basename(sys.argv) is used.
- The first call to syslog.syslog() calls ident() with no options
(if it hasn't previously been called).
- Variously related documentation changes.
"make test" with this succeeds.
I think this is ready to go into the trunk, but would like a review. I'll check with the release maintainer about if this is appropriate for 2.7b.
components: Library (Lib)
keywords: easy, needs review, patch
stage: patch review
title: syslog.syslog('msg') logs message with ident "python".
versions: Python 2.7, Python 3.2
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list