New submission from Sean Reifschneider <j...@tummy.com>:

As discussed in this thread:

http://mail.python.org/pipermail/python-dev/2010-March/098500.html

The syslog module is using the C argv[0] as the program name, not the python 
sys.argv[0].  So, in most cases this means that unless you explicitly set a 
ident, you get "python" as the ident.  Not entirely helpful.

This patch:

 - Makes openlog arguments keyword args.
 - Makes openlog ident argument optional.
 - If ident is not passed to ident, basename(sys.argv[0]) 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.

Sean

----------
components: Library (Lib)
keywords: easy, needs review, patch
messages: 103555
nosy: jafo
priority: normal
severity: normal
stage: patch review
status: open
title: syslog.syslog('msg') logs message with ident "python".
type: behavior
versions: Python 2.7, Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8451>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to