aboutsummaryrefslogtreecommitdiff
path: root/src/table.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-21 12:54:55 +0000
committerAlex Auvolat <alex@adnab.me>2020-04-21 12:54:55 +0000
commitcc4f2f1cfb30e3995edf3c1174bd06b4bc0a9bf1 (patch)
treeedf151a855ea4bcc55cad64a959b430e243deffa /src/table.rs
parent53cf4d1baaa994544c02ec12f4bea28598720aa8 (diff)
downloadgarage-cc4f2f1cfb30e3995edf3c1174bd06b4bc0a9bf1.tar.gz
garage-cc4f2f1cfb30e3995edf3c1174bd06b4bc0a9bf1.zip
Pretty logging
Diffstat (limited to 'src/table.rs')
-rw-r--r--src/table.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/table.rs b/src/table.rs
index d9b505c9..8bcb3c66 100644
--- a/src/table.rs
+++ b/src/table.rs
@@ -489,7 +489,7 @@ where
pub async fn delete_range(&self, begin: &Hash, end: &Hash) -> Result<(), Error> {
let syncer = self.syncer.load_full().unwrap();
- eprintln!("({}) Deleting range {:?} - {:?}", self.name, begin, end);
+ debug!("({}) Deleting range {:?} - {:?}", self.name, begin, end);
let mut count = 0;
while let Some((key, _value)) = self.store.get_lt(end.as_slice())? {
if key.as_ref() < begin.as_slice() {
@@ -504,7 +504,7 @@ where
count += 1;
}
}
- eprintln!("({}) {} entries deleted", self.name, count);
+ debug!("({}) {} entries deleted", self.name, count);
Ok(())
}