Add trace output

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-02-17 10:46:02 +01:00
parent 84c6a1981e
commit 820ac41443
3 changed files with 3 additions and 0 deletions

View file

@ -24,6 +24,7 @@ toml = "0.4"
toml-query = "0.8" toml-query = "0.8"
filters = "0.3" filters = "0.3"
failure = "0.1" failure = "0.1"
log = "0.4"
libimagstore = { version = "0.10.0", path = "../../../lib/core/libimagstore" } libimagstore = { version = "0.10.0", path = "../../../lib/core/libimagstore" }
libimagerror = { version = "0.10.0", path = "../../../lib/core/libimagerror" } libimagerror = { version = "0.10.0", path = "../../../lib/core/libimagerror" }

View file

@ -93,6 +93,7 @@ impl Is for ::libimagstore::store::Entry {
} }
fn remove_isflag<T: IsKindHeaderPathProvider>(&mut self) -> Result<()> { fn remove_isflag<T: IsKindHeaderPathProvider>(&mut self) -> Result<()> {
trace!("Trying to remove: {}", T::kindflag_header_location());
self.get_header_mut() self.get_header_mut()
.delete(T::kindflag_header_location()) .delete(T::kindflag_header_location())
.map_err(Error::from) .map_err(Error::from)

View file

@ -41,6 +41,7 @@ extern crate filters;
extern crate toml; extern crate toml;
extern crate toml_query; extern crate toml_query;
extern crate failure; extern crate failure;
#[macro_use] extern crate log;
extern crate libimagstore; extern crate libimagstore;
extern crate libimagerror; extern crate libimagerror;