chiark / gitweb /
debug on add/remove occultation
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 27 Feb 2021 19:26:28 +0000 (19:26 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 27 Feb 2021 19:26:28 +0000 (19:26 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/hidden.rs

index 1143e45f22ca551e74162119ac1fcf1ad4bd699e..da3a757b7fbf1bc7ddb6ff50e4f837df8106c5d3 100644 (file)
@@ -503,7 +503,8 @@ pub fn create_occultation(
     occulter,
     views,
     pieces: default(),
-  };    
+  };
+  debug!("creating occultation {:?}", &occultation);
 
   // Everything from here on must be undone if we get an error
   // but we hope not to get one...
@@ -566,6 +567,7 @@ pub fn remove_occultation(
     goccults.occults.remove(occid).ok_or_else(
       || internal_logic_error("removing nonexistent occultation"))
   );
+  debug!("removing occultation {:?}", &occultation);
       
   let mut updates = vec![];