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:
Nick Craig-Wood 2025-01-07 11:19:58 +00:00
parent abf11271fe
commit 5f70918e2c
2 changed files with 2 additions and 1 deletions

View File

@ -80,6 +80,7 @@ INFO : Path2 checking for diffs
INFO : Applying changes INFO : Applying changes
INFO : - Path1 Queue copy to Path2 - {path2/}subdir INFO : - Path1 Queue copy to Path2 - {path2/}subdir
INFO : - Path1 Do queued copies to - Path2 INFO : - Path1 Do queued copies to - Path2
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 : Bisync successful INFO : Bisync successful

View File

@ -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)