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 <[email protected]>
  • Loading branch information
shuo-wu committed Oct 7, 2024
1 parent b894cc4 commit 8693e0c
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 8693e0c

Please sign in to comment.