Skip to content

Commit e36fc63

Browse files
authored
chain/ethereum: Add provider string to logger on eth_call (#4548)
1 parent e556be6 commit e36fc63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chain/ethereum/src/ethereum_adapter.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use graph::data::subgraph::API_VERSION_0_0_7;
1010
use graph::prelude::ethabi::ParamType;
1111
use graph::prelude::ethabi::Token;
1212
use graph::prelude::tokio::try_join;
13+
use graph::slog::o;
1314
use graph::{
1415
blockchain::{block_stream::BlockWithTriggers, BlockPtr, IngestorError},
1516
prelude::{
@@ -426,6 +427,7 @@ impl EthereumAdapter {
426427
block_ptr: BlockPtr,
427428
) -> impl Future<Item = Bytes, Error = EthereumContractCallError> + Send {
428429
let web3 = self.web3.clone();
430+
let logger = Logger::new(&logger, o!("provider" => self.provider.clone()));
429431

430432
// Ganache does not support calls by block hash.
431433
// See https://github.com/trufflesuite/ganache-cli/issues/973

0 commit comments

Comments
 (0)