Skip to content

Commit

Permalink
Print conflict error in warning level message
Browse files Browse the repository at this point in the history
To better understand the failure of resource update, use the warn level message instead.

Longhorn 7106

Signed-off-by: Derek Su <derek.su@suse.com>
(cherry picked from commit 463dd8e)
  • Loading branch information
derekbit authored and David Ko committed Nov 15, 2023
1 parent 5f30ee2 commit d54a53a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func handleReconcileErrorLogging(logger logrus.FieldLogger, err error, mesg stri
}

if apierrors.IsConflict(err) {
logger.WithError(err).Debug(mesg)
logger.WithError(err).Warn(mesg)
} else {
logger.WithError(err).Error(mesg)
}
Expand Down

0 comments on commit d54a53a

Please sign in to comment.