fix(BRIDGE-19): warning instead of error on logs for checksum validation...

This commit is contained in:
Atanas Janeshliev
2024-04-17 12:59:36 +00:00
parent 9552e72ba8
commit 7a8760e2ef

View File

@ -146,7 +146,7 @@ func mkdirAllClear(path string) error {
func checksum(path string) (hash string) { func checksum(path string) (hash string) {
file, err := os.Open(filepath.Clean(path)) file, err := os.Open(filepath.Clean(path))
if err != nil { if err != nil {
logrus.WithError(err).WithField("path", path).Error("Cannot open file for checksum") logrus.WithError(err).WithField("path", path).Warn("Cannot open file for checksum")
return return
} }
defer file.Close() //nolint:errcheck,gosec defer file.Close() //nolint:errcheck,gosec