drop log level for backup servers

This commit is contained in:
Bryan Stitt 2023-01-23 21:37:23 -08:00
parent cfa840a140
commit 47daab3b67
2 changed files with 11 additions and 1 deletions

View File

@ -1099,6 +1099,7 @@ impl Web3ProxyApp {
| "shh_version") => {
// TODO: client error stat
// TODO: proper error code
// TODO: right now this sends a warn level log. thats too verbose
return Err(anyhow::anyhow!("method unsupported: {}", method));
}
// TODO: implement these commands
@ -1109,6 +1110,7 @@ impl Web3ProxyApp {
| "eth_newPendingTransactionFilter"
| "eth_uninstallFilter") => {
// TODO: unsupported command stat
// TODO: right now this sends a warn level log. thats too verbose
return Err(anyhow::anyhow!("not yet implemented: {}", method));
}
// some commands can use local data or caches

View File

@ -337,7 +337,15 @@ impl Web3Connection {
);
let retry_in = Duration::from_millis(sleep_ms);
info!(
let error_level = if self.backup {
log::Level::Debug
} else {
log::Level::Info
};
log::log!(
error_level,
"Failed reconnect to {}! Retry in {}ms. err={:?}",
self,
retry_in.as_millis(),