Skip to content

Commit

Permalink
User context logger in async failure
Browse files Browse the repository at this point in the history
Signed-off-by: Sotirios Mantziaris <smantziaris@gmail.com>
  • Loading branch information
mantzas committed Dec 6, 2019
1 parent 9b450e8 commit d0d5387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion async/component.go
Expand Up @@ -149,7 +149,7 @@ func (c *Component) processMessage(msg Message, ch chan error) {
}

func (c *Component) executeFailureStrategy(msg Message, err error) error {
log.Errorf("failed to process message, failure strategy executed: %v", err)
log.FromContext(msg.Context()).Errorf("failed to process message, failure strategy executed: %v", err)
switch c.failStrategy {
case NackExitStrategy:
return errors.Aggregate(err, errors.Wrap(msg.Nack(), "failed to NACK message"))
Expand Down

0 comments on commit d0d5387

Please sign in to comment.