From cdf0d443411618e0952c35bfb5972fc82023cdfa Mon Sep 17 00:00:00 2001 From: Mark Sinclair Date: Tue, 31 Aug 2021 14:37:28 +0100 Subject: [PATCH] explorer-api: turned down logging from `error` to `warn` --- explorer-api/src/ping/http.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/explorer-api/src/ping/http.rs b/explorer-api/src/ping/http.rs index 6728c7ebac..8853fbac61 100644 --- a/explorer-api/src/ping/http.rs +++ b/explorer-api/src/ping/http.rs @@ -95,7 +95,7 @@ fn sanitize_and_resolve_host(host: &str, port: u16) -> Option { match parsed_host.to_socket_addrs() { Ok(mut addrs) => addrs.next(), Err(e) => { - error!( + warn!( "Failed to resolve {}:{} -> {}. Error: {}", host, port, parsed_host, e ); @@ -118,13 +118,13 @@ async fn do_port_check(host: &str, port: u16) -> bool { true } Ok(Err(_stream_err)) => { - error!("{} ping failed {:}", addr, _stream_err); + warn!("{} ping failed {:}", addr, _stream_err); // didn't timeout but couldn't open tcp stream false } Err(_timeout) => { // timed out - error!("{} timed out {:}", addr, _timeout); + warn!("{} timed out {:}", addr, _timeout); false } },