diff --git a/publish/publisher.go b/publish/publisher.go index 45a7c07..000350a 100644 --- a/publish/publisher.go +++ b/publish/publisher.go @@ -76,8 +76,10 @@ func (pub *Publisher) Start(pq chan *decoder.Packet) { if err == nil { msg.NodePW = config.Cfg.HepNodePW pkt.Payload, err = msg.Marshal() - if err != nil { + if err == nil { pub.output(pkt.Payload) + } else { + logp.Warn("Bad HEP marshal: %v", err) } } else { logp.Warn("Bad HEP: %v", err)