diff --git a/internal/launcher/health_monitor.go b/internal/launcher/health_monitor.go index 4bfd42051..1bd02b5a8 100644 --- a/internal/launcher/health_monitor.go +++ b/internal/launcher/health_monitor.go @@ -1,7 +1,6 @@ package launcher import ( - "log" "time" "github.com/github/gh-aw-mcpg/internal/logger" @@ -47,8 +46,8 @@ func NewHealthMonitor(l *Launcher, interval time.Duration) *HealthMonitor { // Start begins periodic health checks in a background goroutine. func (hm *HealthMonitor) Start() { - log.Printf("[HEALTH] Starting health monitor (interval=%s)", hm.interval) - logger.LogInfo("startup", "Health monitor started (interval=%s)", hm.interval) + logHealth.Printf("Starting health monitor: interval=%v", hm.interval) + logger.LogInfo("startup", "Health monitor started (interval=%v)", hm.interval) go hm.run() } @@ -129,6 +128,6 @@ func (hm *HealthMonitor) handleErrorState(serverID string, state ServerState) { } hm.consecutiveFailures[serverID] = 0 - log.Printf("[HEALTH] Successfully restarted server %q", serverID) + logHealth.Printf("Successfully restarted server: serverID=%s", serverID) logger.LogInfo("backend", "Health check: successfully restarted server %q", serverID) }