Commit 1945f895 authored by keks's avatar keks Committed by vyzo

log when validator discards message

parent 930f264a
......@@ -187,7 +187,6 @@ func (p *PubSub) processLoop(ctx context.Context) {
from: p.host.ID(),
msg: msg,
}
}
}()
case req := <-p.sendMsg:
......@@ -350,6 +349,7 @@ func msgID(pmsg *pb.Message) string {
func (p *PubSub) validate(subs []*Subscription, msg *Message) bool {
for _, sub := range subs {
if sub.validate != nil && !sub.validate(msg) {
log.Debugf("validator for topic %s returned false", sub.topic)
return false
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment