Skip to content

Commit e21574a

Browse files
gh-92412: Clarify the documentation on library/syslog (GH-92587) (GH-95266)
(cherry picked from commit b7ce462) Co-authored-by: Nicolas Haller <[email protected]>
1 parent 345daea commit e21574a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Doc/library/syslog.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,15 @@ The module defines the following functions:
2929
value given in the :func:`openlog` call is used.
3030

3131
If :func:`openlog` has not been called prior to the call to :func:`syslog`,
32-
``openlog()`` will be called with no arguments.
32+
:func:`openlog` will be called with no arguments.
3333

3434
.. audit-event:: syslog.syslog priority,message syslog.syslog
3535

36+
.. versionchanged:: 3.2
37+
In previous versions, :func:`openlog` would not be called automatically if
38+
it wasn't called prior to the call to :func:`syslog`, deferring to the syslog
39+
implementation to call ``openlog()``.
40+
3641

3742
.. function:: openlog([ident[, logoption[, facility]]])
3843

@@ -51,8 +56,7 @@ The module defines the following functions:
5156

5257
.. versionchanged:: 3.2
5358
In previous versions, keyword arguments were not allowed, and *ident* was
54-
required. The default for *ident* was dependent on the system libraries,
55-
and often was ``python`` instead of the name of the Python program file.
59+
required.
5660

5761

5862
.. function:: closelog()

0 commit comments

Comments
 (0)