Skip to content

Commit

Permalink
fix: set default logger
Browse files Browse the repository at this point in the history
Signed-off-by: André Kesser <[email protected]>
  • Loading branch information
André Kesser committed Mar 14, 2024
1 parent 7072273 commit 377da7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ package main

import (
"context"
"io"
"log"
"os"
"path/filepath"
"time"
Expand Down Expand Up @@ -53,6 +55,9 @@ func main() {

kingpin.MustParse(app.Parse(os.Args[1:]))

log.Default().SetOutput(io.Discard)
ctrl.SetLogger(zap.New(zap.WriteTo(io.Discard)))

zl := zap.New(zap.UseDevMode(*debug))
log := logging.NewLogrLogger(zl.WithName("provider-pagerduty"))
if *debug {
Expand Down

0 comments on commit 377da7c

Please sign in to comment.