mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 12:46:46 +00:00
fix(BRIDGE-19): warning instead of error on logs for checksum validation...
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user