Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Tell klog to use os.Discard (#5)
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville authored Oct 27, 2023
1 parent 7db18a8 commit 2bfe5da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"io"
"os"
"os/signal"
"strconv"
Expand All @@ -10,6 +11,7 @@ import (
"github.com/ddosify/alaz/datastore"
"github.com/ddosify/alaz/ebpf"
"github.com/ddosify/alaz/k8s"
"k8s.io/klog/v2"

"context"

Expand All @@ -19,6 +21,8 @@ import (
)

func main() {
klog.SetOutput(io.Discard) // disable klog traces

ctx, cancel := context.WithCancel(context.Background())

c := make(chan os.Signal, 1)
Expand Down

0 comments on commit 2bfe5da

Please sign in to comment.