Skip to content

Commit

Permalink
Fix logger warning
Browse files Browse the repository at this point in the history
  • Loading branch information
loafoe committed Dec 5, 2023
1 parent 17948eb commit be1ae53
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 @@ -6,6 +6,7 @@ package main

import (
"context"
"io"
"os"
"path/filepath"
"time"
Expand Down Expand Up @@ -59,6 +60,8 @@ func main() {
// *very* verbose even at info level, so we only provide it a real
// logger when we're running in debug mode.
ctrl.SetLogger(zl)
} else {
ctrl.SetLogger(zap.New(zap.WriteTo(io.Discard)))
}

log.Debug("Starting",
Expand Down

0 comments on commit be1ae53

Please sign in to comment.