Skip to content

Commit

Permalink
Better time print
Browse files Browse the repository at this point in the history
The time returned from LastUpdateTime was similar to '2024-01-02 15:15:55.737056215 +0000 UTC m=+19.844109800' which is less readable (and more accurate) than '2024-01-02T15:15:55.737056215Z'. The latter is good enough and better human readable IMO
  • Loading branch information
razo7 committed Jan 3, 2024
1 parent 99c94ce commit f520487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/conditions.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func UpdateConditions(reason ConditionsChangeReason, far *v1alpha1.FenceAgentsRe
now := metav1.Now()
far.Status.LastUpdateTime = &now
}
log.Info("Updating Status Condition", "processingConditionStatus", processingConditionStatus, "fenceAgentActionSucceededConditionStatus", fenceAgentActionSucceededConditionStatus, "succeededConditionStatus", succeededConditionStatus, "reason", string(reason), "LastUpdateTime", far.Status.LastUpdateTime)
log.Info("Updating Status Condition", "processingConditionStatus", processingConditionStatus, "fenceAgentActionSucceededConditionStatus", fenceAgentActionSucceededConditionStatus, "succeededConditionStatus", succeededConditionStatus, "reason", string(reason), "LastUpdateTime", far.Status.LastUpdateTime.Time)

return
}

0 comments on commit f520487

Please sign in to comment.