Skip to content

Commit fdf830d

Browse files
[3.13] Update logging.config.listen() docstrings to mention dictConfig() (GH-155479) (GH-155528)
(cherry picked from commit 791b573)
1 parent 1822659 commit fdf830d

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Lib/logging/config.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -941,8 +941,9 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT, verify=None):
941941
Start up a socket server on the specified port, and listen for new
942942
configurations.
943943
944-
These will be sent as a file suitable for processing by fileConfig().
945-
Returns a Thread object on which you can call start() to start the server,
944+
These will be sent as a file suitable for processing by dictConfig() or
945+
fileConfig(). Returns a Thread object on which you can call start() to
946+
start the server,
946947
and which you can join() when appropriate. To stop the server, call
947948
stopListening().
948949
@@ -960,16 +961,16 @@ class ConfigStreamHandler(StreamRequestHandler):
960961
"""
961962
Handler for a logging configuration request.
962963
963-
It expects a completely new logging configuration and uses fileConfig
964-
to install it.
964+
It expects a completely new logging configuration and uses dictConfig
965+
or fileConfig to install it.
965966
"""
966967
def handle(self):
967968
"""
968969
Handle a request.
969970
970971
Each request is expected to be a 4-byte length, packed using
971972
struct.pack(">L", n), followed by the config file.
972-
Uses fileConfig() to do the grunt work.
973+
Uses dictConfig() or fileConfig() to do the grunt work.
973974
"""
974975
try:
975976
conn = self.connection

0 commit comments

Comments
 (0)