Add some debug output

This commit is contained in:
Matthias Beyer 2018-02-20 17:28:54 +01:00
parent 912a48cbfe
commit 404e9deed2
2 changed files with 2 additions and 0 deletions

View file

@ -82,6 +82,7 @@ impl Diary for Store {
// Get an iterator for iterating over all entries
fn entries(&self, diary_name: &str) -> Result<DiaryEntryIterator> {
debug!("Building iterator for module 'diary' with diary name = '{}'", diary_name);
self.retrieve_for_module("diary")
.map(|iter| DiaryEntryIterator::new(self, String::from(diary_name), iter))
.chain_err(|| DEK::StoreReadError)

View file

@ -43,6 +43,7 @@ impl IsInDiary for Entry {
impl IsInDiary for StoreId {
fn is_in_diary(&self, name: &str) -> bool {
debug!("Check: is in diary '{}'", name);
self.is_in_collection(&["diary", name])
}