Skip to content

Commit

Permalink
Add info about tick delay in debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
Tumas authored and sauliusgrigaitis committed Apr 23, 2024
1 parent 9ee739f commit 8491378
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions validator/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ impl<P: Preset, W: Wait + Sync> Validator<P, W> {
if let Some(metrics) = self.metrics.as_ref() {
if tick.is_start_of_interval() {
let tick_delay = tick.delay(&self.chain_config, self.controller.genesis_time())?;
debug!("tick_delay: {tick_delay:?} for {tick:?}");
metrics.set_tick_delay(tick.kind.as_ref(), tick_delay);
}
}
Expand Down

0 comments on commit 8491378

Please sign in to comment.