Преглед изворни кода

remove confusing error message from logs

Signed-off-by: r2k1 <yokree@gmail.com>
r2k1 пре 2 година
родитељ
комит
cd4522e505
1 измењених фајлова са 2 додато и 1 уклоњено
  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 {