mirror of
https://github.com/rclone/rclone.git
synced 2025-01-18 12:21:06 +01:00
fs/operations: make log messages consistent for mkdir/rmdir at INFO level
Before this change, creating a new directory would write a DEBUG log but removing it would write an INFO log. This change makes both write an INFO log for consistency.
This commit is contained in:
parent
abf11271fe
commit
5f70918e2c
@ -80,6 +80,7 @@ INFO : Path2 checking for diffs
|
|||||||
INFO : Applying changes
|
INFO : Applying changes
|
||||||
INFO : - [36mPath1[0m [35m[32mQueue copy to[0m Path2[0m - [36m{path2/}subdir[0m
|
INFO : - [36mPath1[0m [35m[32mQueue copy to[0m Path2[0m - [36m{path2/}subdir[0m
|
||||||
INFO : - [36mPath1[0m [35mDo queued copies to[0m - [36mPath2[0m
|
INFO : - [36mPath1[0m [35mDo queued copies to[0m - [36mPath2[0m
|
||||||
|
INFO : subdir: Making directory
|
||||||
INFO : Updating listings
|
INFO : Updating listings
|
||||||
INFO : Validating listings for Path1 "{path1/}" vs Path2 "{path2/}"
|
INFO : Validating listings for Path1 "{path1/}" vs Path2 "{path2/}"
|
||||||
INFO : [32mBisync successful[0m
|
INFO : [32mBisync successful[0m
|
||||||
|
@ -1050,7 +1050,7 @@ func Mkdir(ctx context.Context, f fs.Fs, dir string) error {
|
|||||||
if SkipDestructive(ctx, fs.LogDirName(f, dir), "make directory") {
|
if SkipDestructive(ctx, fs.LogDirName(f, dir), "make directory") {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
fs.Debugf(fs.LogDirName(f, dir), "Making directory")
|
fs.Infof(fs.LogDirName(f, dir), "Making directory")
|
||||||
err := f.Mkdir(ctx, dir)
|
err := f.Mkdir(ctx, dir)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = fs.CountError(ctx, err)
|
err = fs.CountError(ctx, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user