Skip to content

Commit 34519a4

Browse files
committed
COH-31333 - Update the session connection log output to be similar to other clients
1 parent 6324336 commit 34519a4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/coherence/client.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,6 +1927,17 @@ async def create(session_options: Optional[Options] = None) -> Session:
19271927
session: Session = Session(session_options)
19281928
await session._set_ready(False)
19291929
await session._handshake.handshake()
1930+
if session._protocol_version > 0:
1931+
COH_LOG.info(
1932+
f"Session(id={session.session_id}, connected to [{session._session_options.address}]"
1933+
f" proxy-version={session._proxy_version}, protocol-version={session._protocol_version}"
1934+
f" proxy-member-id={session._proxy_member_id})"
1935+
)
1936+
else:
1937+
COH_LOG.info(
1938+
f"Session(id={session.session_id}, connected to [{session._session_options.address}]"
1939+
f" protocol-version={session._protocol_version})"
1940+
)
19301941
return session
19311942

19321943
# noinspection PyTypeHints

0 commit comments

Comments
 (0)