Add debug output
This commit is contained in:
parent
6173cff762
commit
9ba2439da3
1 changed files with 3 additions and 0 deletions
|
@ -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 })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue