Fix a failed return in an error case (#445)

This commit is contained in:
Nathan Brown 2021-04-17 18:47:31 -05:00 committed by GitHub
parent 7859140711
commit a1ee521d79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}