Add debug output
This commit is contained in:
parent
797b764027
commit
60f2a34074
1 changed files with 5 additions and 0 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue