Add debug output

This commit is contained in:
Matthias Beyer 2017-10-13 10:23:08 +02:00
parent 797b764027
commit 60f2a34074

View file

@ -124,6 +124,7 @@ fn remove(rt: &Runtime) {
.unwrap(); .unwrap();
if delete { if delete {
debug!("Deleting annotation object");
if let Some(an) = annotation { if let Some(an) = annotation {
let loc = an.get_location().clone(); let loc = an.get_location().clone();
drop(an); drop(an);
@ -133,7 +134,11 @@ fn remove(rt: &Runtime) {
.delete(loc) .delete(loc)
.map_err_trace_exit(1) .map_err_trace_exit(1)
.unwrap(); .unwrap();
} else {
warn!("Not having annotation object, cannot delete!");
} }
} else {
debug!("Not deleting annotation object");
} }
info!("Ok"); info!("Ok");