File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -934,8 +934,9 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT, verify=None):
934934 Start up a socket server on the specified port, and listen for new
935935 configurations.
936936
937- These will be sent as a file suitable for processing by fileConfig().
938- Returns a Thread object on which you can call start() to start the server,
937+ These will be sent as a file suitable for processing by dictConfig() or
938+ fileConfig(). Returns a Thread object on which you can call start() to
939+ start the server,
939940 and which you can join() when appropriate. To stop the server, call
940941 stopListening().
941942
@@ -953,16 +954,16 @@ class ConfigStreamHandler(StreamRequestHandler):
953954 """
954955 Handler for a logging configuration request.
955956
956- It expects a completely new logging configuration and uses fileConfig
957- to install it.
957+ It expects a completely new logging configuration and uses dictConfig
958+ or fileConfig to install it.
958959 """
959960 def handle (self ):
960961 """
961962 Handle a request.
962963
963964 Each request is expected to be a 4-byte length, packed using
964965 struct.pack(">L", n), followed by the config file.
965- Uses fileConfig() to do the grunt work.
966+ Uses dictConfig() or fileConfig() to do the grunt work.
966967 """
967968 try :
968969 conn = self .connection
You can’t perform that action at this time.
0 commit comments