Skip to content

Commit

Permalink
ethereum: Improve traces error logs (graphprotocol#3353)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoyvens authored Mar 11, 2022
1 parent 819013d commit 93cad19
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions chain/ethereum/src/ethereum_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,12 @@ impl EthereumAdapter {
let elapsed = start.elapsed().as_secs_f64();
provider_metrics.observe_request(elapsed, "trace_filter", &provider);
subgraph_metrics.observe_request(elapsed, "trace_filter", &provider);
if result.is_err() {
if let Err(e) = &result {
provider_metrics.add_error("trace_filter", &provider);
subgraph_metrics.add_error("trace_filter", &provider);
debug!(
logger_for_error,
"Error querying traces error = {:?} from = {:?} to = {:?}",
result,
from,
to
"Error querying traces error = {:#} from = {} to = {}", e, from, to
);
}
result
Expand Down

0 comments on commit 93cad19

Please sign in to comment.