Skip to content

Commit

Permalink
Adds more logs when failing at storing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Leduc-Hamel committed Feb 26, 2021
1 parent 7410bcd commit 3badfdb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/jobs/storejob.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func (r *StoreJob) Perform(ctx context.Context, args ...interface{}) error {
r.cfg.Logger().Debug().Interface("Raw", raw).Msg("Decoding arguments")
err := mapstructure.Decode(raw, &msg)
if err != nil {
r.cfg.Logger().Error().Err(err).Msg("Error while trying to decode arguments")
return err
}

Expand Down

0 comments on commit 3badfdb

Please sign in to comment.