Skip to content

Commit 15e488f

Browse files
authored
Enhance health data logging in AtomicEoaExecutorStore (#69)
- Added tracing information for health data updates, including last nonce movement and initialization of fresh data when no health data is found. - Improved logging for skipping health data updates when no health information is available.
1 parent c0162c8 commit 15e488f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

executors/src/eoa/store/atomic.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,18 @@ impl AtomicEoaExecutorStore {
425425
let health_update = if let Some(mut health) = current_health {
426426
health.last_nonce_movement_at = now;
427427
health.last_confirmation_at = now;
428+
429+
tracing::info!(
430+
current_chain_tx_count = current_chain_tx_count,
431+
"Updated health data with last nonce movement at {now}"
432+
);
433+
428434
Some(serde_json::to_string(&health)?)
429435
} else {
436+
tracing::info!(
437+
current_chain_tx_count = current_chain_tx_count,
438+
"No health data found, initializing with fresh data"
439+
);
430440
None
431441
};
432442

@@ -464,6 +474,15 @@ impl AtomicEoaExecutorStore {
464474
if let Some(ref health_json) = health_update {
465475
let health_key = self.eoa_health_key_name();
466476
pipeline.set(&health_key, health_json);
477+
tracing::info!(
478+
current_chain_tx_count = current_chain_tx_count,
479+
"Updated health data with last nonce movement at {now}"
480+
);
481+
} else {
482+
tracing::info!(
483+
current_chain_tx_count = current_chain_tx_count,
484+
"No health data found, skipping health data update"
485+
);
467486
}
468487
})
469488
.await

0 commit comments

Comments
 (0)