@@ -147,9 +147,10 @@ async def init(
147147 self , driver_path : str , setup_handler : uc .SetupHandler | None = None
148148 ):
149149 """
150- Load driver configuration and start integration-API WebSocket server.
150+ Load driver configuration and start the integration-API WebSocket server.
151151
152- :param driver_path: path to configuration file
152+ :param driver_path: path to the configuration file. If it is not an absolute
153+ path, the current working directory is used.
153154 :param setup_handler: optional driver setup handler if the driver metadata
154155 contains a setup_data_schema object
155156 """
@@ -389,7 +390,9 @@ async def _enqueue_ws_payload(self, websocket, payload: dict[str, Any]) -> None:
389390
390391 if _LOG .isEnabledFor (logging .DEBUG ):
391392 _LOG .debug (
392- "[%s] <-: %s" , websocket .remote_address , sanitize_json_message (payload )
393+ "[%s] <-: %s" ,
394+ websocket .remote_address ,
395+ json .dumps (sanitize_json_message (payload )),
393396 )
394397
395398 match payload .get ("kind" ):
@@ -515,7 +518,9 @@ async def _send_ws_event(
515518 async def _process_ws_message (self , websocket , data : dict [str , Any ]) -> None :
516519 if _LOG .isEnabledFor (logging .DEBUG ):
517520 _LOG .debug (
518- "[%s] ->: %s" , websocket .remote_address , sanitize_json_message (data )
521+ "[%s] ->: %s" ,
522+ websocket .remote_address ,
523+ json .dumps (sanitize_json_message (data )),
519524 )
520525
521526 kind = data ["kind" ]
0 commit comments