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. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com