client: pxar: add debug output for exclude pattern matches

Log the path of directory entries matched by an exclude pattern in
order to more conveniently debug possible issues.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2024-09-26 14:34:37 +02:00 committed by Thomas Lamprecht
parent 7465ccd097
commit 76504bfcac

View File

@ -635,7 +635,10 @@ impl Archiver {
});
match match_result {
Ok(Some(MatchType::Exclude)) => continue,
Ok(Some(MatchType::Exclude)) => {
log::debug!("matched by exclude pattern '{full_path:?}'");
continue;
}
Ok(_) => (),
Err(err) if err.not_found() => continue,
Err(err) => {