March 20, 2010
4:45 p.m.
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.