Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
fix: Set controller logger if we don't use JSON format (#451)
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Kilchhofer <[email protected]>
  • Loading branch information
mkilchhofer authored Jan 11, 2022
1 parent dd2a179 commit 377b7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ func main() {

json := strings.ToLower(logFormat) == JsonFormat

ctrl.SetLogger(zap.New(zap.UseDevMode(!json)))
if json {
ctrl.SetLogger(zap.New(zap.UseDevMode(!json)))
log.SetFormatter(&log.JSONFormatter{})
}

Expand Down

0 comments on commit 377b7e5

Please sign in to comment.