From 45009a01d95b6449c4d59456b91a6fd2b08f3a7f Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 5 Nov 2022 23:06:47 +0800 Subject: [PATCH] add debugging hints for figuring out context switch bugs in the future --- services/gam/src/contexts.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/gam/src/contexts.rs b/services/gam/src/contexts.rs index c45bc1241..b50647c3d 100644 --- a/services/gam/src/contexts.rs +++ b/services/gam/src/contexts.rs @@ -330,6 +330,7 @@ impl ContextManager { token: [u32; 4], clear: bool, ) -> Result<(), xous::Error> { + //log::set_max_level(log::LevelFilter::Trace); self.notify_app_switch(token).ok(); let mut leaving_visibility: bool = false; @@ -483,6 +484,7 @@ impl ContextManager { self.redraw().expect("couldn't redraw the currently focused app"); } } + //log::set_max_level(log::LevelFilter::Info); Ok(()) } pub(crate) fn set_pred_api_token(&mut self, at: ApiToken) {