From 71ce17d6b7d8a6434f9b86468dd28a267bf29377 Mon Sep 17 00:00:00 2001 From: haerdib Date: Fri, 3 Nov 2023 18:23:35 +0100 Subject: [PATCH] remove error logs --- src/rpc/tungstenite_client/client.rs | 2 -- src/rpc/ws_client/mod.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rpc/tungstenite_client/client.rs b/src/rpc/tungstenite_client/client.rs index 03c732665..4081cf34d 100644 --- a/src/rpc/tungstenite_client/client.rs +++ b/src/rpc/tungstenite_client/client.rs @@ -141,8 +141,6 @@ fn subscribe_to_server( let subcription_id = match value["result"].as_str() { Some(id) => id, None => { - error!("response: {:?} ", value["error"]); - let message = match value["error"]["message"].is_string() { true => serde_json::to_string(&value["error"])?, false => format!("Received unexpected response: {}", msg), diff --git a/src/rpc/ws_client/mod.rs b/src/rpc/ws_client/mod.rs index 0e633a531..b944a2a99 100644 --- a/src/rpc/ws_client/mod.rs +++ b/src/rpc/ws_client/mod.rs @@ -114,7 +114,7 @@ impl HandleMessage for SubscriptionHandler { let out = &context.out; let msg = &context.msg; - error!("got on_subscription_msg {}", msg); + info!("got on_subscription_msg {}", msg); let value: serde_json::Value = serde_json::from_str(msg.as_text()?).map_err(Box::new)?; if value["error"]["message"].is_string() {