From 3f01d92d3b166057941e8fbffe1adda21f411fe4 Mon Sep 17 00:00:00 2001 From: Scott Miller Date: Thu, 15 Jul 2021 16:54:59 -0500 Subject: [PATCH] Suppress logging during a diagnose run (#12101) * Suppress logging during a diagnose run * remove debugging --- command/operator_diagnose.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/command/operator_diagnose.go b/command/operator_diagnose.go index 16884263f..6ca59bbc8 100644 --- a/command/operator_diagnose.go +++ b/command/operator_diagnose.go @@ -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),