Skip to content

Commit

Permalink
Merge pull request #152 from crossplane-contrib/backport-151-to-relea…
Browse files Browse the repository at this point in the history
…se-0.8

[Backport release-0.8] fix missing logger
  • Loading branch information
MisterMX authored Jul 24, 2024
2 parents 6dd6214 + 33d15de commit 55886ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package main

import (
"context"
"io"
"os"
"path/filepath"
"time"
Expand Down Expand Up @@ -60,6 +61,8 @@ func main() {

zl := zap.New(zap.UseDevMode(*debug), UseISO8601())
log := logging.NewLogrLogger(zl.WithName("provider-gitlab"))
// explicitly provide a no-op logger by default, otherwise controller-runtime gives a warning
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
Expand Down

0 comments on commit 55886ad

Please sign in to comment.