Skip to content

Commit

Permalink
modify the log level. Add some hints.
Browse files Browse the repository at this point in the history
  • Loading branch information
TeraTian committed Aug 30, 2024
1 parent 8b3d0b8 commit d0bc9f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d0bc9f0

Please sign in to comment.