Skip to content
This repository was archived by the owner on Aug 25, 2022. It is now read-only.

Commit 54e915c

Browse files
Merge pull request #19 from hellofresh/bugfix/iss-18
Fixes #18. Add more info to logs
2 parents d2071c9 + db1fb80 commit 54e915c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

workers/producer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ func (p *internalProducer) handleMessage(msg internalMessage) (err error) {
5555
statsd.Instance().Increment("kafka.failed-messages")
5656

5757
logger.Instance().
58+
WithError(err).
5859
WithField("topic", msg.Topic).
5960
Debug("An error occurred while sending message to kafka")
6061
}

0 commit comments

Comments
 (0)