list: change debug logs for excluded items
This commit is contained in:
parent
e2fb588eb9
commit
ae63e4b4f0
1 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@ func DirSorted(f fs.Fs, includeAll bool, dir string) (entries fs.DirEntries, err
|
||||||
// starting directory, otherwise ListDirSorted should not be
|
// starting directory, otherwise ListDirSorted should not be
|
||||||
// called.
|
// called.
|
||||||
if !includeAll && filter.Active.ListContainsExcludeFile(entries) {
|
if !includeAll && filter.Active.ListContainsExcludeFile(entries) {
|
||||||
fs.Debugf(dir, "Excluded from sync (and deletion)")
|
fs.Debugf(dir, "Excluded")
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
return filterAndSortDir(entries, includeAll, dir, filter.Active.IncludeObject, filter.Active.IncludeDirectory(f))
|
return filterAndSortDir(entries, includeAll, dir, filter.Active.IncludeObject, filter.Active.IncludeDirectory(f))
|
||||||
|
@ -51,7 +51,7 @@ func filterAndSortDir(entries fs.DirEntries, includeAll bool, dir string,
|
||||||
// Make sure we don't delete excluded files if not required
|
// Make sure we don't delete excluded files if not required
|
||||||
if !includeAll && !IncludeObject(x) {
|
if !includeAll && !IncludeObject(x) {
|
||||||
ok = false
|
ok = false
|
||||||
fs.Debugf(x, "Excluded from sync (and deletion)")
|
fs.Debugf(x, "Excluded")
|
||||||
}
|
}
|
||||||
case fs.Directory:
|
case fs.Directory:
|
||||||
if !includeAll {
|
if !includeAll {
|
||||||
|
@ -61,7 +61,7 @@ func filterAndSortDir(entries fs.DirEntries, includeAll bool, dir string,
|
||||||
}
|
}
|
||||||
if !include {
|
if !include {
|
||||||
ok = false
|
ok = false
|
||||||
fs.Debugf(x, "Excluded from sync (and deletion)")
|
fs.Debugf(x, "Excluded")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Reference in a new issue