Add debug log for not descending

This commit is contained in:
Olivier 'reivilibre' 2022-07-08 15:26:45 +01:00
parent 098895d913
commit 080875bfce
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ use std::path::{Path, PathBuf};
use anyhow::anyhow;
use indicatif::{ProgressBar, ProgressDrawTarget, ProgressStyle};
use log::{info, warn};
use log::{debug, info, warn};
use serde::{Deserialize, Serialize};
pub use yama::definitions::FilesystemOwnership;
@ -241,6 +241,7 @@ pub fn scan_with_progress_bar(
) -> anyhow::Result<Option<FileTree<(), (), (), ()>>> {
if exclusions.contains(path) {
// Don't enter excluded paths.
debug!("Not descending into excluded path: {:?}", path);
return Ok(None);
}