From f5204875ed3833806059b8fe0198f55ea46df3b6 Mon Sep 17 00:00:00 2001 From: oraz Date: Wed, 3 Jan 2024 16:21:58 +0200 Subject: [PATCH] Better time print 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 --- pkg/utils/conditions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/utils/conditions.go b/pkg/utils/conditions.go index 97ca693b..376295bd 100644 --- a/pkg/utils/conditions.go +++ b/pkg/utils/conditions.go @@ -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 }