1
mirror of https://github.com/rclone/rclone synced 2024-09-06 00:08:57 +02:00

fs: add debug to show when a backend is being created

See: https://forum.rclone.org/t/rclone-rc-backend-command-not-working-as-expected/18834/
This commit is contained in:
Nick Craig-Wood 2020-08-31 14:51:06 +01:00
parent e54ce35019
commit c31defbbd3

View File

@ -1330,6 +1330,7 @@ func ConfigFs(path string) (fsInfo *RegInfo, configName, fsPath string, config *
// On Windows avoid single character remote names as they can be mixed
// up with drive letters.
func NewFs(path string) (Fs, error) {
Debugf(nil, "Creating backend with remote %q", path)
fsInfo, configName, fsPath, config, err := ConfigFs(path)
if err != nil {
return nil, err