Merge pull request #14482 from joesis/logging-provisioning-file-reader

log error when resolvePath
This commit is contained in:
Carl Bergquist 2018-12-13 15:16:15 +01:00 committed by GitHub
commit 82adf5393e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 == "" {