From d0bc9f023b140399bd4da5957dbd4f77f880cbed Mon Sep 17 00:00:00 2001 From: tera Date: Fri, 30 Aug 2024 14:53:26 +0800 Subject: [PATCH] modify the log level. Add some hints. --- internal/types/container/keepalived_container_collector_host.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/types/container/keepalived_container_collector_host.go b/internal/types/container/keepalived_container_collector_host.go index d07d0f4..171c8c4 100644 --- a/internal/types/container/keepalived_container_collector_host.go +++ b/internal/types/container/keepalived_container_collector_host.go @@ -149,7 +149,7 @@ func (k *KeepalivedContainerCollectorHost) sigNum(sigString string) syscall.Sign func (k *KeepalivedContainerCollectorHost) signal(signal syscall.Signal) error { data, err := os.ReadFile(k.pidPath) if err != nil { - logrus.WithField("path", k.pidPath).WithError(err).Error("Can't find keepalived pid. Send signal to default process") + logrus.WithField("path", k.pidPath).WithError(err).Warn("Can't find keepalived pid. Falling back to the default process. It's recommended to explicitly specify the pid.") err := k.dockerCli.ContainerKill(context.Background(), k.containerName, strconv.Itoa(int(signal))) if err != nil {