浏览代码

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

Nathan Brown 4 年之前
父节点
当前提交
a1ee521d79
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lighthouse.go

+ 1 - 1
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
 	}