Skip to content

Commit

Permalink
Merge pull request #602 from johnhowlett/Log-output-error--json--erro…
Browse files Browse the repository at this point in the history
…r-calling-MarshalJSON-for-type-time.Time

chore: change log.Fileds for JSON format output
  • Loading branch information
linki authored Jul 23, 2024
2 parents 95e6194 + 80bfd5e commit f71ab89
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -193,7 +193,7 @@ func main() {

log.WithFields(log.Fields{
"weekdays": parsedWeekdays,
"timesOfDay": parsedTimesOfDay,
"timesOfDay": excludedTimesOfDay,
"daysOfYear": util.FormatDays(parsedDaysOfYear),
}).Info("setting quiet times")

Expand Down

0 comments on commit f71ab89

Please sign in to comment.