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 mergify[bot] committed Nov 15, 2023
1 parent 10deb31 commit f28b5b8
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 @@ -67,7 +67,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 f28b5b8

Please sign in to comment.