summaryrefslogtreecommitdiff
path: root/src/policy.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-03-03 18:51:38 +0200
committerLars Wirzenius <liw@liw.fi>2022-03-06 09:27:37 +0200
commit26366ac6e2624b0b9d855303796684bcb26eaef2 (patch)
treefb0b80638042828b1caa0490ee785152c2b30cf7 /src/policy.rs
parent0ee823e00a29ca15ac2699ec588f9c1ff2c7b04d (diff)
downloadobnam2-26366ac6e2624b0b9d855303796684bcb26eaef2.tar.gz
perf: reduce logging for, for performance
Sponsored-by: author
Diffstat (limited to 'src/policy.rs')
-rw-r--r--src/policy.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/policy.rs b/src/policy.rs
index 7241f0f..bb98a48 100644
--- a/src/policy.rs
+++ b/src/policy.rs
@@ -3,7 +3,7 @@
use crate::backup_reason::Reason;
use crate::fsentry::FilesystemEntry;
use crate::generation::LocalGeneration;
-use log::{debug, warn};
+use log::warn;
/// Policy for what gets backed up.
///
@@ -59,10 +59,6 @@ impl BackupPolicy {
Reason::GenerationLookupError
}
};
- debug!(
- "needs_backup: file {:?}: policy decision: {}",
- new_name, reason
- );
reason
}
}