From ad4753f283d57f825e91a3b0123b35010dfdbe59 Mon Sep 17 00:00:00 2001 From: Nate Brown Date: Mon, 24 Jul 2023 10:24:29 -0500 Subject: [PATCH] Change to proper error logs if NOTIFY_SOCKET is present --- cmd/nebula/notify_linux.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/nebula/notify_linux.go b/cmd/nebula/notify_linux.go index 53952b903..8c3dca558 100644 --- a/cmd/nebula/notify_linux.go +++ b/cmd/nebula/notify_linux.go @@ -22,19 +22,19 @@ func notifyReady(l *logrus.Logger) { conn, err := net.DialTimeout("unixgram", sockName, time.Second) if err != nil { - l.WithError(err).Debugln("failed to connect to systemd notification socket") + l.WithError(err).Error("failed to connect to systemd notification socket") return } defer conn.Close() err = conn.SetWriteDeadline(time.Now().Add(time.Second)) if err != nil { - l.WithError(err).Debugln("failed to set the write deadline for the systemd notification socket") + l.WithError(err).Error("failed to set the write deadline for the systemd notification socket") return } if _, err = conn.Write([]byte(SdNotifyReady)); err != nil { - l.WithError(err).Debugln("failed to signal the systemd notification socket") + l.WithError(err).Error("failed to signal the systemd notification socket") return }