From 76504bfcacd83e6b1a054044cbe71fb9c8f230ad Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Thu, 26 Sep 2024 14:34:37 +0200 Subject: [PATCH] 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 --- pbs-client/src/pxar/create.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pbs-client/src/pxar/create.rs b/pbs-client/src/pxar/create.rs index 6129f4a4..c0c492f8 100644 --- a/pbs-client/src/pxar/create.rs +++ b/pbs-client/src/pxar/create.rs @@ -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) => {