diff --git a/modules/mesh-grants/internal/grants/consumers.go b/modules/mesh-grants/internal/grants/consumers.go index c3ee1029..3934107f 100644 --- a/modules/mesh-grants/internal/grants/consumers.go +++ b/modules/mesh-grants/internal/grants/consumers.go @@ -190,11 +190,21 @@ func (p *Part) consumers(res *Result, recs buscompose.Records, match string) { switch err := p.Consumers.CreateConsumer(stream, buscompose.ConsumerConfig(c)); { case err == nil: st.Created = append(st.Created, key) + if p.Logf != nil { + p.Logf("consumer %s created", key) + } p.say(res, EventAsserted, map[string]any{"consumer": c.Name, "stream": stream}) case errors.Is(err, ErrHeld): default: st.Missing = append(st.Missing, key) st.NotCreated = append(st.NotCreated, key+": "+err.Error()) + if p.Logf != nil && p.filterRefused[key] != "create: "+err.Error() { + p.Logf("consumer %s is not created: %v", key, err) + if p.filterRefused == nil { + p.filterRefused = map[string]string{} + } + p.filterRefused[key] = "create: " + err.Error() + } } } }