Skip to content

Commit 4834b4a

Browse files
committed
all: Adjust some log levels
This should make it easier and less noisy to follow processing at INFO level
1 parent e50769a commit 4834b4a

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

chain/ethereum/src/polling_block_stream.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use graph::blockchain::block_stream::{
1414
use graph::blockchain::{Block, BlockPtr, TriggerFilterWrapper};
1515
use graph::futures03::{stream::Stream, Future, FutureExt};
1616
use graph::prelude::{DeploymentHash, BLOCK_NUMBER_MAX};
17-
use graph::slog::{debug, info, trace, warn, Logger};
17+
use graph::slog::{info, trace, warn, Logger};
1818

1919
use graph::components::store::BlockNumber;
2020
use graph::data::subgraph::UnifiedMappingApiVersion;
@@ -516,9 +516,12 @@ impl Stream for PollingBlockStream {
516516
total_triggers as f64 / block_range_size as f64;
517517
self.ctx.previous_block_range_size = block_range_size;
518518
if total_triggers > 0 {
519-
debug!(
519+
info!(
520520
self.ctx.logger,
521-
"Processing {} triggers", total_triggers
521+
"Found {} triggers in {} blocks with a block range of {}",
522+
total_triggers,
523+
next_blocks.len(),
524+
block_range_size
522525
);
523526
}
524527

core/src/subgraph/runner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ where
595595
"block_hash" => format!("{}", block_ptr.hash)
596596
));
597597

598-
debug!(logger, "Start processing block";
598+
info!(logger, "Start processing block";
599599
"triggers" => triggers.len());
600600

601601
let proof_of_indexing =

runtime/wasm/src/host.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ where
209209

210210
// If there is an error, "gas_used" is incorrectly reported as 0.
211211
let gas_used = result.as_ref().map(|(_, gas)| gas).unwrap_or(&Gas::ZERO);
212-
info!(
212+
debug!(
213213
logger, "Done processing trigger";
214214
&extras,
215215
"total_ms" => elapsed.as_millis(),
@@ -277,7 +277,7 @@ where
277277

278278
// If there is an error, "gas_used" is incorrectly reported as 0.
279279
let gas_used = result.as_ref().map(|(_, gas)| gas).unwrap_or(&Gas::ZERO);
280-
info!(
280+
debug!(
281281
logger, "Done processing wasm block";
282282
"block_ptr" => &block_ptr,
283283
"total_ms" => elapsed.as_millis(),

0 commit comments

Comments
 (0)