From 0a82c24752a1f9861ed0e1f246f45a470e436f59 Mon Sep 17 00:00:00 2001 From: Chris Grindstaff Date: Mon, 3 Jun 2024 13:44:59 -0400 Subject: [PATCH] fix: Harvest should log errors when grafana import fails Thanks to Chris Gautcher (@gautcher) for raising. --- integration/test/dashboard_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/test/dashboard_test.go b/integration/test/dashboard_test.go index cf9b304cc..4ccba0f17 100644 --- a/integration/test/dashboard_test.go +++ b/integration/test/dashboard_test.go @@ -40,7 +40,7 @@ func TestGrafanaAndPrometheusAreConfigured(t *testing.T) { cDotFolder = "Harvest-" + version.VERSION + "-cDOT" sevenModeFolder = "Harvest-" + version.VERSION + "-7mode" log.Info().Str("cMode", cDotFolder).Str("7mode", sevenModeFolder).Msg("Folder name details") - status, out := new(grafana.Mgr).Import("") // send empty so that it will import all dashboards + status, out := new(grafana.Mgr).Import() if !status { t.Errorf("Grafana import operation failed out=%s", out) }