Skip to content

Commit 6a36b8e

Browse files
[3.11] Clarifying the documentation on library/syslog (GH-92587) (GH-95492)
(cherry picked from commit b7ce462) Co-authored-by: Nicolas Haller <[email protected]>
1 parent 0e636e4 commit 6a36b8e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Doc/library/syslog.rst

+7-3
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,15 @@ The module defines the following functions:
3131
value given in the :func:`openlog` call is used.
3232

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

3636
.. audit-event:: syslog.syslog priority,message syslog.syslog
3737

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

3944
.. function:: openlog([ident[, logoption[, facility]]])
4045

@@ -53,8 +58,7 @@ The module defines the following functions:
5358

5459
.. versionchanged:: 3.2
5560
In previous versions, keyword arguments were not allowed, and *ident* was
56-
required. The default for *ident* was dependent on the system libraries,
57-
and often was ``python`` instead of the name of the Python program file.
61+
required.
5862

5963

6064
.. function:: closelog()

0 commit comments

Comments
 (0)