send log
This commit is contained in:
+2
-1
@@ -46,9 +46,10 @@ func PulsarSend(data string) error {
|
|||||||
Payload: []byte(data),
|
Payload: []byte(data),
|
||||||
})
|
})
|
||||||
if err == nil {
|
if err == nil {
|
||||||
Log.Info("send ", zap.Any("id", id))
|
Log.Info("send to pulsar", zap.Any("id", id))
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Log.Error("error in produce message", zap.Error(err))
|
||||||
closeClient()
|
closeClient()
|
||||||
create()
|
create()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user