[Python-Dev] Bug? syslog.openlog using ident "python" by default.
Eric Smith
eric at trueblade.com
Fri Mar 19 14:33:15 CET 2010
Sean Reifschneider wrote:
> If you call:
>
> from syslog import syslog, openlog
> syslog('My error message')
>
> Something like the following gets logged:
>
> Mar 18 05:20:22 guin python: My error message
> ^^^^^^
>
> Where I'm annoyed by the "python" in the above. This is pulled from
> the C argv[0]. IMHO, what we really want is the Python sys.argv[0].
I agree with this. The existing behavior is very annoying. I don't have
any particular thoughts about the implementation.
Eric.
More information about the Python-Dev
mailing list