From 60f2a340745a936d1f3229cc3cb1b1bfbeb5f31b Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 13 Oct 2017 10:23:08 +0200 Subject: [PATCH] Add debug output --- bin/core/imag-annotate/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/core/imag-annotate/src/main.rs b/bin/core/imag-annotate/src/main.rs index 13d0bfcb..dd2c68e1 100644 --- a/bin/core/imag-annotate/src/main.rs +++ b/bin/core/imag-annotate/src/main.rs @@ -124,6 +124,7 @@ fn remove(rt: &Runtime) { .unwrap(); if delete { + debug!("Deleting annotation object"); if let Some(an) = annotation { let loc = an.get_location().clone(); drop(an); @@ -133,7 +134,11 @@ fn remove(rt: &Runtime) { .delete(loc) .map_err_trace_exit(1) .unwrap(); + } else { + warn!("Not having annotation object, cannot delete!"); } + } else { + debug!("Not deleting annotation object"); } info!("Ok");