Skip to content

Commit

Permalink
chore: improve an error log
Browse files Browse the repository at this point in the history
Signed-off-by: Shuo Wu <shuo.wu@suse.com>
  • Loading branch information
shuo-wu authored and derekbit committed Oct 8, 2024
1 parent 2c45ffc commit 53aec34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/volume_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ func (c *VolumeController) ReconcileEngineReplicaState(v *longhorn.Volume, es ma
} else {
after, err := util.TimestampAfterTimestamp(transitionTime, r.Spec.LastHealthyAt)
if err != nil {
log.Errorf("Failed to check if replica %v transitioned to mode %v after it was last healthy", r.Name, mode)
log.WithError(err).Errorf("Failed to check if replica %v transitioned to mode %v after it was last healthy", r.Name, mode)
}
if after || err != nil {
r.Spec.LastHealthyAt = now
Expand Down

0 comments on commit 53aec34

Please sign in to comment.