From 60f1688ac2e554086ee4112e80d5b2111abe7ea2 Mon Sep 17 00:00:00 2001 From: Jeff Date: Thu, 18 Jul 2024 10:34:16 -0400 Subject: [PATCH] Add more detail to debug logs --- src/bot.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/bot.rs b/src/bot.rs index 873a2d1..0ce9209 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -943,7 +943,10 @@ impl Bot { fn handle_position_and_orientation(&mut self) -> Result<(), String> { if let Some(current_position) = self.client.current::() { if current_position != self.position { - debug!("Updating position to {}", self.position.0); + debug!( + "Updating position from {} to {}", + current_position.0, self.position.0 + ); let entity = self.client.entity(); let ecs = self.client.state_mut().ecs(); @@ -957,7 +960,10 @@ impl Bot { if let Some(current_orientation) = self.client.current::() { if current_orientation != self.orientation { - debug!("Updating orientation to {:?}", self.orientation); + debug!( + "Updating orientation from {:?} to {:?}", + current_orientation, self.orientation + ); let entity = self.client.entity(); let ecs = self.client.state_mut().ecs();