File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments