Add broker comments on server subscribe
This commit is contained in:
parent
df710d9efc
commit
ab6334fad1
1
grpc.go
1
grpc.go
@ -653,6 +653,7 @@ func (g *grpcServer) Register() error {
|
|||||||
opts = append(opts, broker.DisableAutoAck())
|
opts = append(opts, broker.DisableAutoAck())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Logf("Broker [%s] Subscribing to topic: %s", config.Broker.String(), sb.Topic())
|
||||||
sub, err := config.Broker.Subscribe(sb.Topic(), handler, opts...)
|
sub, err := config.Broker.Subscribe(sb.Topic(), handler, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user