Log non-existentent analyzers instead of adding to analyzer results (#1593)

log to debug non-existent analyzes instead of adding to analyzers results
This commit is contained in:
Diamon Wiggins
2024-08-14 15:34:36 -04:00
committed by GitHub
parent d83d8ebfc6
commit fa14616009
2 changed files with 3 additions and 6 deletions

View File

@@ -119,11 +119,8 @@ func Analyze(
analyzerInst := getAnalyzer(analyzer)
if analyzerInst == nil {
return []*AnalyzeResult{{
IsFail: true,
Title: "nonexistent analyzer",
Message: "Analyzer not found",
}}, nil
klog.Info("Non-existent analyzer found in the spec. Please double-check the spelling and indentation of the analyzers in the spec.")
return nil, nil
}
_, span := otel.Tracer(constants.LIB_TRACER_NAME).Start(ctx, analyzerInst.Title())

View File

@@ -1,5 +1,5 @@
apiVersion: troubleshoot.sh/v1beta2
kind: Collector
kind: SupportBundle
metadata:
name: my-application-name
spec: