You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When syslog.openlog() is called without parameters (or syslog.syslog() is called directly), the ident parameter should be set to "sys.argv[0] with leading path components stripped" (citation from docs).
I suppose this means that when sys.argv[0] is "/some/path/to/script", the ident should be set to "script" (this is the behavior in Python 2.7)
However, in Python 3.x, it gets set to "/script", i.e. the last slash is included in the string. I suppose this is not intended, it is just a "one-off" error in parsing the string.
New changeset f04750b by Miss Islington (bot) (Václav Bartoš) in branch 'master': bpo-38361: syslog: fixed making default "ident" from sys.argv[0] (GH-16557) f04750b
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: