From a1ee521d7921a2b199c4115b0871d82fa2a2ab53 Mon Sep 17 00:00:00 2001 From: Nathan Brown Date: Sat, 17 Apr 2021 18:47:31 -0500 Subject: [PATCH] Fix a failed return in an error case (#445) --- lighthouse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lighthouse.go b/lighthouse.go index d3f8d29..7cbf411 100644 --- a/lighthouse.go +++ b/lighthouse.go @@ -369,7 +369,7 @@ func (lh *LightHouse) SendUpdate(f EncWriter) { out := make([]byte, mtu) mm, err := proto.Marshal(m) - if err != nil && lh.l.Level >= logrus.DebugLevel { + if err != nil { lh.l.WithError(err).Error("Error while marshaling for lighthouse update") return }