Skip to content

Commit

Permalink
cc
Browse files Browse the repository at this point in the history
  • Loading branch information
Breee committed Dec 18, 2024
1 parent f649ae1 commit 1b0d85f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ func main() {

zl := zap.New(zap.UseDevMode(*debug))
log := logging.NewLogrLogger(zl.WithName("provider-keycloak"))

// Setting the controller-runtime logger to a no-op logger by default,
// unless debug mode is enabled. This is because the controller-runtime
// logger is *very* verbose even at info level. This is not really needed,
// but otherwise we get a warning from the controller-runtime.
ctrl.SetLogger(zap.New(zap.WriteTo(io.Discard)))

if *debug {
// The controller-runtime runs with a no-op logger by default. It is
// *very* verbose even at info level, so we only provide it a real
// logger when we're running in debug mode.
ctrl.SetLogger(zl)
}
}

log.Debug("Starting", "sync-period", syncInterval.String())

Expand Down

0 comments on commit 1b0d85f

Please sign in to comment.