Skip to content

Commit 340a905

Browse files
committed
log health check requests
1 parent a74ab92 commit 340a905

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/src/lib/server.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,10 @@ async fn health_handler(
371371
let is_healthy = now_secs.saturating_sub(last_event) <= 10;
372372

373373
let body = if is_healthy {
374+
info!("Health check passed");
374375
r#"{"success": true}"#
375376
} else {
377+
warn!("Health check failed - last event time: {} seconds ago", now_secs.saturating_sub(last_event));
376378
r#"{"success": false}"#
377379
};
378380

0 commit comments

Comments
 (0)