1
0
mirror of https://github.com/eventials/goevents.git synced 2025-04-24 13:48:53 +08:00

(feat): Add topic and data to error log in publish message

This commit is contained in:
Eddy Santos 2024-04-08 10:45:39 -03:00
parent bdd54501c2
commit 0c4f095589

View File

@ -124,6 +124,8 @@ func (p *producer) drainInternalQueue() {
if err != nil {
logrus.WithFields(logrus.Fields{
"message": m,
"topic": m.action,
"data": string(m.data),
"error": err,
}).Error("Failed to publish message.")