A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-March/098612.html below:

[Python-Dev] Bug? syslog.openlog using ident " python" by default.

[Python-Dev] Bug? syslog.openlog using ident " python" by default. [Python-Dev] Bug? syslog.openlog using ident " python" by default.Antoine Pitrou solipsis at pitrou.net
Sat Mar 20 17:45:04 CET 2010
Sean Reifschneider <jafo <at> tummy.com> writes:
> 
> I would propose changing the Python syslog() call to do the C equivalent of:
> 
>    if openlog_hasnt_been_called_before_now:
>       if sys.argv[0]:
>          syslog.openlog(os.path.basename(sys.argv[0]))
> 
> In other words, if there's a script name and openlog hasn't already been
> called, call openlog with the basename of the script name.

This looks fine to me. The compatibility breakage doesn't look too serious,
given that "python" is an inappropriate name and therefore people would have
changed it anyway.

By the way, why does logging have its own syslog implementation?

Regards

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4