Skip to content

Commit 268c32e

Browse files
authored
COH-28687 - Display the host its trying to connect in error stack (#84)
1 parent ba33012 commit 268c32e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/coherence/event.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -663,11 +663,13 @@ async def _ensure_stream(self) -> grpc.aio.StreamStreamCall:
663663
async with asyncio.timeout(self._session.options.request_timeout_seconds):
664664
await self._stream_waiter.wait()
665665
except TimeoutError:
666-
raise TimeoutError(
667-
"Deadline [{0} seconds] exceeded waiting for event stream to become ready)".format(
668-
str(self._session.options.request_timeout_seconds)
666+
s = (
667+
"Deadline [{0} seconds] exceeded waiting for event stream"
668+
" to become ready. Server address - {1})".format(
669+
str(self._session.options.request_timeout_seconds), self._session.options.address
669670
)
670671
)
672+
raise TimeoutError(s)
671673

672674
return self._event_stream
673675

0 commit comments

Comments
 (0)