소스 검색

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
 	}