From 80bfd5e051322c49a5f1e431ba03a0a1ff99c30a Mon Sep 17 00:00:00 2001 From: John Howlett Date: Wed, 24 Apr 2024 13:57:54 +0200 Subject: [PATCH] chore: change log.Fileds for JSON format output --- main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 731bb025..f797dcc6 100644 --- a/main.go +++ b/main.go @@ -164,11 +164,11 @@ func main() { ) log.WithFields(log.Fields{ - "labels": labelSelector, - "annotations": annotations, - "kinds": kinds, - "namespaces": namespaces, - "namespaceLabels": namespaceLabels, + "labels": labelSelector.String(), + "annotations": annotations.String(), + "kinds": kinds.String(), + "namespaces": namespaces.String(), + "namespaceLabels": namespaceLabels.String(), "includedPodNames": includedPodNames, "excludedPodNames": excludedPodNames, "minimumAge": minimumAge, @@ -193,7 +193,7 @@ func main() { log.WithFields(log.Fields{ "weekdays": parsedWeekdays, - "timesOfDay": parsedTimesOfDay, + "timesOfDay": excludedTimesOfDay, "daysOfYear": util.FormatDays(parsedDaysOfYear), }).Info("setting quiet times")