From ca0d26729954d3fab6037313db6d287a5895fbe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Kro=C3=9F?= Date: Mon, 21 Sep 2026 12:22:37 +0200 Subject: [PATCH] ntppool-agent: Raise criticality of two log messages So they are rendered even if minimal system log level is raised to filter out levels Info and below - Log version string upon startup - Log when it's suspected clock might not be ok, and monitoring is paused --- client/cmd/monitor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/cmd/monitor.go b/client/cmd/monitor.go index 64a318b..16185eb 100644 --- a/client/cmd/monitor.go +++ b/client/cmd/monitor.go @@ -76,7 +76,7 @@ func (cmd *monitorCmd) Run(ctx context.Context, cli *ClientCmd) error { log := logger.FromContext(ctx).With("env", cli.DeployEnv.String()) ctx = logger.NewContext(ctx, log) - log.InfoContext(ctx, "starting ntppool-agent", "version", version.Version()) + log.WarnContext(ctx, "starting ntppool-agent", "version", version.Version()) g, ctx := errgroup.WithContext(ctx) @@ -435,7 +435,7 @@ runLoop: if !localOK.Check(ctx) { wait := localOK.NextCheckIn() - log.InfoContext(ctx, "local clock might not be okay", "waiting", wait.Round(1*time.Second).String()) + log.WarnContext(ctx, "local clock might not be okay", "waiting", wait.Round(1*time.Second).String()) select { case <-ctx.Done(): log.DebugContext(ctx, "localOK context done")