mirror of
https://github.com/grafana/grafana.git
synced 2025-01-21 22:13:38 -06:00
log error when resolvePath
This commit is contained in:
parent
633ae8c37a
commit
92a8c5b81b
@ -333,12 +333,12 @@ func (fr *fileReader) resolvePath(path string) string {
|
||||
copy := path
|
||||
path, err := filepath.Abs(path)
|
||||
if err != nil {
|
||||
fr.log.Error("Could not create absolute path ", "path", path)
|
||||
fr.log.Error("Could not create absolute path", "path", copy, "error", err)
|
||||
}
|
||||
|
||||
path, err = filepath.EvalSymlinks(path)
|
||||
if err != nil {
|
||||
fr.log.Error("Failed to read content of symlinked path: %s", path)
|
||||
fr.log.Error("Failed to read content of symlinked path", "path", copy, "error", err)
|
||||
}
|
||||
|
||||
if path == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user