mirror of
https://github.com/k3s-io/k3s.git
synced 2026-06-11 09:52:24 -04:00
Reduce GRPC console spam
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
parent
c9e0bc85ed
commit
f96256622a
1 changed files with 3 additions and 0 deletions
|
|
@ -2,11 +2,13 @@ package cmds
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/urfave/cli/v2"
|
||||
"google.golang.org/grpc/grpclog"
|
||||
)
|
||||
|
||||
type Log struct {
|
||||
|
|
@ -72,6 +74,7 @@ func checkUnixTimestamp() error {
|
|||
}
|
||||
|
||||
func setupLogging() {
|
||||
grpclog.SetLoggerV2(grpclog.NewLoggerV2(io.Discard, io.Discard, io.Discard))
|
||||
if Debug {
|
||||
logrus.SetLevel(logrus.DebugLevel)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue