Add broker comments on server subscribe

This commit is contained in:
Asim Aslam 2020-01-19 01:16:36 +00:00 committed by Vasiliy Tolstov
parent df710d9efc
commit ab6334fad1

View File

@ -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