Skip to content

Commit

Permalink
hotfix: add log payload to help development (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
fajrifernanda authored Oct 11, 2022
1 parent 23c0bdd commit fe309a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jetstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func NewNATSMessageHandler(payload MessageParser, retryAttempts int, retryInterv
}

payload.AddSubject(msg.Subject)
defer logger.WithField("payload", utils.Dump(payload)).Warn("message payload")

retryErr := utils.Retry(retryAttempts, retryInterval, func() error {
return msgHandler(payload)
Expand Down

0 comments on commit fe309a9

Please sign in to comment.