Skip to content

Commit

Permalink
Merge pull request #1439 from zaneb/logging-structured-timestamp-again
Browse files Browse the repository at this point in the history
🐛 Don't munge timestamp in structured logs, again
  • Loading branch information
metal3-io-bot authored Nov 13, 2023
2 parents 74bfd27 + 4b8c581 commit 9ebf2d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ func main() {
if devLogging {
logOpts.Development = true
logOpts.TimeEncoder = zapcore.ISO8601TimeEncoder
} else {
logOpts.TimeEncoder = zapcore.EpochTimeEncoder
}
ctrl.SetLogger(zap.New(zap.UseFlagOptions(&logOpts)))

Expand Down

0 comments on commit 9ebf2d0

Please sign in to comment.