Skip to content

Commit

Permalink
remove error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
haerdib committed Nov 3, 2023
1 parent b110bef commit 71ce17d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/rpc/tungstenite_client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/ws_client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 71ce17d

Please sign in to comment.