summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-08-12 16:19:08 (GMT)
committerGitHub <noreply@github.com>2022-08-12 16:19:08 (GMT)
commite21574a823c4811172f29644b5294f22072a1e86 (patch)
treea437c07fbe70870911d9cd1ce8fcc01660da111a
parent345daea0760339d55a9e6e34e1b190c5c081c1e6 (diff)
downloadcpython-e21574a823c4811172f29644b5294f22072a1e86.zip
cpython-e21574a823c4811172f29644b5294f22072a1e86.tar.gz
cpython-e21574a823c4811172f29644b5294f22072a1e86.tar.bz2
gh-92412: Clarify the documentation on library/syslog (GH-92587) (GH-95266)
(cherry picked from commit b7ce4625fe2a8a4d6c1db6b39b52c7f97d384caa) Co-authored-by: Nicolas Haller <nicolas@haller.im>
-rw-r--r--Doc/library/syslog.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/Doc/library/syslog.rst b/Doc/library/syslog.rst
index d264a33..ce51856 100644
--- a/Doc/library/syslog.rst
+++ b/Doc/library/syslog.rst
@@ -29,10 +29,15 @@ The module defines the following functions:
value given in the :func:`openlog` call is used.
If :func:`openlog` has not been called prior to the call to :func:`syslog`,
- ``openlog()`` will be called with no arguments.
+ :func:`openlog` will be called with no arguments.
.. audit-event:: syslog.syslog priority,message syslog.syslog
+ .. versionchanged:: 3.2
+ In previous versions, :func:`openlog` would not be called automatically if
+ it wasn't called prior to the call to :func:`syslog`, deferring to the syslog
+ implementation to call ``openlog()``.
+
.. function:: openlog([ident[, logoption[, facility]]])
@@ -51,8 +56,7 @@ The module defines the following functions:
.. versionchanged:: 3.2
In previous versions, keyword arguments were not allowed, and *ident* was
- required. The default for *ident* was dependent on the system libraries,
- and often was ``python`` instead of the name of the Python program file.
+ required.
.. function:: closelog()