Skip to content

Commit

Permalink
Monitoring nit (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmantica11 authored Nov 1, 2024
1 parent 3584dc2 commit 6145d77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/monitor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ pub fn continously_monitor_photon(
has_been_healthy = true;
}
info!("Indexing lag: {}", lag);
if has_been_healthy && lag > HEALTH_CHECK_SLOT_DISTANCE as u64 {
error!("Indexing lag is too hgh: {}", lag);
if lag > HEALTH_CHECK_SLOT_DISTANCE as u64 {
if has_been_healthy {
error!("Indexing lag is too high: {}", lag);
}
} else {
let tree_roots = load_db_tree_roots_with_infinite_retry(db.as_ref()).await;
validate_tree_roots(rpc_client.as_ref(), tree_roots).await;
Expand Down

0 comments on commit 6145d77

Please sign in to comment.