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

View File

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