Reduce GRPC console spam

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
Brad Davidson 2026-06-08 23:53:06 +00:00 committed by Brad Davidson
parent c9e0bc85ed
commit f96256622a

View file

@ -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)
}