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