Skip to content
Snippets Groups Projects
Commit 553bc973 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

chore: log warnings when ConnectionPool receives errors

parent a1a75055
No related branches found
No related tags found
1 merge request!591chore: log warnings when ConnectionPool receives errors
Pipeline #20208 passed
......@@ -203,7 +203,7 @@ impl PoolWorker {
if ver >= client_ver {
client.reconnect();
client_ver = client_ver.wrapping_add(1);
tlog!(Debug, "reconnecting to {address}:{port}"; "client_version" => client_ver);
tlog!(Warning, "reconnecting to {address}:{port}"; "client_version" => client_ver);
}
}
}
......@@ -215,7 +215,7 @@ impl PoolWorker {
let args = [msg].to_tuple_buffer()?;
let on_result = move |res| match res {
Ok(_) => (),
Err(e) => tlog!(Debug, "error when sending message to peer: {e}";
Err(e) => tlog!(Warning, "error when sending message to peer: {e}";
"raft_id" => raft_id,
),
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment