Skip to content

Commit

Permalink
Merge pull request #151 from BigGold1310/fix-150
Browse files Browse the repository at this point in the history
fix missing logger
  • Loading branch information
MisterMX authored Jul 24, 2024
2 parents 6dd6214 + 7ff96f4 commit 4d3cc79
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 4d3cc79

Please sign in to comment.