Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

local: fix crash when deprecated --local-no-unicode-normalization is supplied

Nick Craig-Wooda4797014c9da
diff --git a/backend/local/local.go b/backend/local/local.go
index b7ac70c61..1be99a144 100644
--- a/backend/local/local.go
+++ b/backend/local/local.go
@@ -21,7 +21,6 @@ import (
"github.com/ncw/rclone/fs/hash"
"github.com/ncw/rclone/lib/readers"
"github.com/pkg/errors"
- "google.golang.org/appengine/log"
)
// Constants
@@ -125,7 +124,7 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {
}
if opt.NoUTFNorm {
- log.Errorf(nil, "The --local-no-unicode-normalization flag is deprecated and will be removed")
+ fs.Errorf(nil, "The --local-no-unicode-normalization flag is deprecated and will be removed")
}
f := &Fs{