Suppress logging during a diagnose run (#12101)

* Suppress logging during a diagnose run

* remove debugging
This commit is contained in:
Scott Miller 2021-07-15 16:54:59 -05:00 committed by GitHub
parent 476b293a85
commit 3f01d92d3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -217,7 +217,9 @@ func (c *OperatorDiagnoseCommand) offlineDiagnostics(ctx context.Context) error
// TODO: other ServerCommand options?
logger: log.NewInterceptLogger(nil),
logger: log.NewInterceptLogger(&log.LoggerOptions{
Level: log.Off,
}),
allLoggers: []log.Logger{},
reloadFuncs: &rloadFuncs,
reloadFuncsLock: new(sync.RWMutex),