[pbs-devel] [PATCH proxmox-backup 2/2] client: pxar: add debug output for exclude pattern matches
Christian Ebner
c.ebner at proxmox.com
Thu Sep 26 14:34:37 CEST 2024
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 at proxmox.com>
---
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 6129f4a44..c0c492f8d 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) => {
--
2.39.5
More information about the pbs-devel
mailing list