Add the file label to dashboard provisioning errors (#53282)

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
Maksim Nabokikh
2022-09-26 10:57:37 +02:00
committed by GitHub
parent 178cd0a232
commit d1e50580a5
@@ -150,7 +150,7 @@ func (fr *FileReader) storeDashboardsInFolder(ctx context.Context, filesFoundOnD
for path, fileInfo := range filesFoundOnDisk {
provisioningMetadata, err := fr.saveDashboard(ctx, path, folderID, fileInfo, dashboardRefs)
if err != nil {
fr.log.Error("failed to save dashboard", "error", err)
fr.log.Error("failed to save dashboard", "file", path, "error", err)
continue
}
@@ -179,7 +179,7 @@ func (fr *FileReader) storeDashboardsInFoldersFromFileStructure(ctx context.Cont
provisioningMetadata, err := fr.saveDashboard(ctx, path, folderID, fileInfo, dashboardRefs)
usageTracker.track(provisioningMetadata)
if err != nil {
fr.log.Error("failed to save dashboard", "error", err)
fr.log.Error("failed to save dashboard", "file", path, "error", err)
}
}
return nil