Skip to content

Commit 2546b3f

Browse files
chore: add extra information in healthy publish logs
1 parent dc4c379 commit 2546b3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent-control/src/sub_agent/on_host/supervisor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ fn wait_exit(
308308
// Publish healthy status once after the process has been running
309309
// for an arbitrary long time without issues.
310310
if !healthy_already_published && Instant::now() > deadline {
311-
debug!(%agent_id, %exec_id, "Informing executable as healthy");
311+
debug!(%agent_id, %exec_id, "{}", format!("Informing executable as healthy after running for {} seconds", healthy_publish_delay.as_secs()));
312312
health_handler.publish_healthy();
313313
healthy_already_published = true;
314314
}
@@ -321,7 +321,7 @@ fn wait_exit(
321321
.wait()
322322
.inspect(|exit_status| {
323323
if !healthy_already_published && exit_status.success() {
324-
debug!(%agent_id, %exec_id, "Informing executable as healthy");
324+
debug!(%agent_id, %exec_id, "Informing executable as healthy after terminating successfully");
325325
health_handler.publish_healthy();
326326
}
327327
})

0 commit comments

Comments
 (0)