|
@@ -47,6 +47,11 @@ func NewDashboardFileReader(cfg *DashboardsAsConfig, log log.Logger) (*fileReade
|
|
|
log.Error("Cannot read directory", "error", err)
|
|
log.Error("Cannot read directory", "error", err)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ path, err := filepath.EvalSymlinks(path)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ log.Error("Failed to read content of symlinked path: %s", path)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
absPath, err := filepath.Abs(path)
|
|
absPath, err := filepath.Abs(path)
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
log.Error("Could not create absolute path ", "path", path)
|
|
log.Error("Could not create absolute path ", "path", path)
|