From 820ac41443d829e9e0c56cc58a915fa4e5fbd2c3 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 17 Feb 2019 10:46:02 +0100 Subject: [PATCH] Add trace output Signed-off-by: Matthias Beyer --- lib/entry/libimagentryutil/Cargo.toml | 1 + lib/entry/libimagentryutil/src/isa.rs | 1 + lib/entry/libimagentryutil/src/lib.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/entry/libimagentryutil/Cargo.toml b/lib/entry/libimagentryutil/Cargo.toml index ccfa1a8c..7e13f6d7 100644 --- a/lib/entry/libimagentryutil/Cargo.toml +++ b/lib/entry/libimagentryutil/Cargo.toml @@ -24,6 +24,7 @@ toml = "0.4" toml-query = "0.8" filters = "0.3" failure = "0.1" +log = "0.4" libimagstore = { version = "0.10.0", path = "../../../lib/core/libimagstore" } libimagerror = { version = "0.10.0", path = "../../../lib/core/libimagerror" } diff --git a/lib/entry/libimagentryutil/src/isa.rs b/lib/entry/libimagentryutil/src/isa.rs index 85da65a1..f10152b8 100644 --- a/lib/entry/libimagentryutil/src/isa.rs +++ b/lib/entry/libimagentryutil/src/isa.rs @@ -93,6 +93,7 @@ impl Is for ::libimagstore::store::Entry { } fn remove_isflag(&mut self) -> Result<()> { + trace!("Trying to remove: {}", T::kindflag_header_location()); self.get_header_mut() .delete(T::kindflag_header_location()) .map_err(Error::from) diff --git a/lib/entry/libimagentryutil/src/lib.rs b/lib/entry/libimagentryutil/src/lib.rs index 769d2241..6dbc1870 100644 --- a/lib/entry/libimagentryutil/src/lib.rs +++ b/lib/entry/libimagentryutil/src/lib.rs @@ -41,6 +41,7 @@ extern crate filters; extern crate toml; extern crate toml_query; extern crate failure; +#[macro_use] extern crate log; extern crate libimagstore; extern crate libimagerror;