Add debug output

This commit is contained in:
Marcel Müller 2016-02-06 19:39:20 +01:00
parent 6173cff762
commit 9ba2439da3
No known key found for this signature in database
GPG key ID: DD4ED37D0CAC76E2

View file

@ -186,8 +186,10 @@ impl Store {
assert!(se.is_borrowed(), "Tried to update a non borrowed entry."); assert!(se.is_borrowed(), "Tried to update a non borrowed entry.");
debug!("Verifying Entry");
try!(entry.entry.verify()); try!(entry.entry.verify());
debug!("Writing Entry");
try!(se.write_entry(&entry.entry)); try!(se.write_entry(&entry.entry));
se.status = StoreEntryStatus::Present; se.status = StoreEntryStatus::Present;
@ -369,6 +371,7 @@ fn verify_header_consistency(t: Table) -> EntryResult<Table> {
} }
fn has_only_tables(t: &Table) -> bool { fn has_only_tables(t: &Table) -> bool {
debug!("Verifying that table has only tables");
t.iter().all(|(_, x)| if let &Value::Table(_) = x { true } else { false }) t.iter().all(|(_, x)| if let &Value::Table(_) = x { true } else { false })
} }