From 67fc48383d07348ea5a4ce76f23131a5eac46459 Mon Sep 17 00:00:00 2001 From: yusing Date: Fri, 2 Jan 2026 01:17:47 +0800 Subject: [PATCH] refactor(monitor): include detail in service down notification log --- internal/watcher/health/monitor/monitor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/watcher/health/monitor/monitor.go b/internal/watcher/health/monitor/monitor.go index bb9ce2b7..91f41bfd 100644 --- a/internal/watcher/health/monitor/monitor.go +++ b/internal/watcher/health/monitor/monitor.go @@ -295,7 +295,7 @@ func (mon *monitor) notifyServiceUp(logger *zerolog.Logger, result *types.Health } func (mon *monitor) notifyServiceDown(logger *zerolog.Logger, result *types.HealthCheckResult) { - logger.Warn().Msg("service went down") + logger.Warn().Str("detail", result.Detail).Msg("service went down") extras := mon.buildNotificationExtras(result) extras.Add("Last Seen", strutils.FormatLastSeen(GetLastSeen(mon.service))) mon.notifyFunc(¬if.LogMessage{