From 387d07fb9350548454573d293f745eff2292569d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Mon, 19 Feb 2024 11:34:51 +0000 Subject: [PATCH] additional logs --- common/client-libs/gateway-client/src/client.rs | 2 ++ .../node/client_handling/websocket/connection_handler/fresh.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/common/client-libs/gateway-client/src/client.rs b/common/client-libs/gateway-client/src/client.rs index 2a9750e7a1..d5c5ec6d42 100644 --- a/common/client-libs/gateway-client/src/client.rs +++ b/common/client-libs/gateway-client/src/client.rs @@ -382,6 +382,8 @@ impl GatewayClient { &self, gateway_protocol: Option, ) -> Result<(), GatewayClientError> { + debug!("gateway protocol: {gateway_protocol:?}, ours: {INITIAL_PROTOCOL_VERSION}"); + // right now there are no failure cases here, but this might change in the future match gateway_protocol { None => { diff --git a/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs b/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs index a2e9e98e7d..930080b19e 100644 --- a/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs +++ b/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs @@ -363,6 +363,7 @@ where &self, client_protocol: Option, ) -> Result { + debug!("client protocol: {client_protocol:?}, ours: {INITIAL_PROTOCOL_VERSION}"); let Some(client_protocol_version) = client_protocol else { warn!("the client we're connected to has not specified its protocol version. It's probably running version < 1.1.X, but that's still fine for now. It will become a hard error in 1.2.0"); // note: in +1.2.0 we will have to return a hard error here