drop log level for backup servers
This commit is contained in:
parent
cfa840a140
commit
47daab3b67
@ -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
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user