Răsfoiți Sursa

Merge pull request #2054 from r2k1/adjust-log

Downgrade CSV Export error message
Matt Ray 2 ani în urmă
părinte
comite
782b99cc9e
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      pkg/cmd/costmodel/costmodel.go

+ 2 - 1
pkg/cmd/costmodel/costmodel.go

@@ -55,7 +55,8 @@ func Execute(opts *CostModelOpts) error {
 func StartExportWorker(ctx context.Context, model costmodel.AllocationModel) error {
 	exportPath := env.GetExportCSVFile()
 	if exportPath == "" {
-		return fmt.Errorf("%s is not set, skipping CSV exporter", exportPath)
+		log.Infof("%s is not set, CSV export is disabled", env.ExportCSVFile)
+		return nil
 	}
 	fm, err := filemanager.NewFileManager(exportPath)
 	if err != nil {