forked from TrueCloudLab/rclone
fs: dump config for an Fs before creation - FIXME TESTING DO NOT MERGE
See: https://forum.rclone.org/t/authenticating-to-box-using-connection-strings-and-config-file-fails/23333/7
This commit is contained in:
parent
f52ae75a51
commit
bede3a5d48
1 changed files with 5 additions and 0 deletions
5
fs/fs.go
5
fs/fs.go
|
@ -1431,6 +1431,11 @@ func NewFs(ctx context.Context, path string) (Fs, error) {
|
||||||
// These need to work as filesystem names as the VFS cache will use them
|
// These need to work as filesystem names as the VFS cache will use them
|
||||||
configName += suffix
|
configName += suffix
|
||||||
}
|
}
|
||||||
|
Debugf(nil, "Config dump:")
|
||||||
|
nonDefaultConfig := fsInfo.Options.NonDefault(config)
|
||||||
|
for k, v := range nonDefaultConfig {
|
||||||
|
Debugf(nil, " %s = %q", k, v)
|
||||||
|
}
|
||||||
return fsInfo.NewFs(ctx, configName, fsPath, config)
|
return fsInfo.NewFs(ctx, configName, fsPath, config)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue