Skip to content

Commit 7c773c8

Browse files
committed
respond to comments
1 parent 12e3037 commit 7c773c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/strands/tools/mcp/mcp_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def start(self) -> "MCPClient":
122122
self._init_future.result(timeout=self._startup_timeout)
123123
self._log_debug_with_thread("the client initialization was successful")
124124
except futures.TimeoutError as e:
125+
logger.exception("client initialization timed out")
125126
# Pass None for exc_type, exc_val, exc_tb since this isn't a context manager exit
126127
self.stop(None, None, None)
127128
raise MCPClientInitializationError(
@@ -161,7 +162,7 @@ async def _set_close_event() -> None:
161162

162163
self._log_debug_with_thread("waiting for background thread to join")
163164
self._background_thread.join()
164-
self._log_debug_with_thread("background thread joined, MCPClient context exited")
165+
self._log_debug_with_thread("background thread is closed, MCPClient context exited")
165166

166167
# Reset fields to allow instance reuse
167168
self._init_future = futures.Future()

0 commit comments

Comments
 (0)