add debugging hints for figuring out context switch bugs in the future

This commit is contained in:
bunnie 2022-11-05 23:06:47 +08:00
parent 7c4ca05922
commit 45009a01d9

View file

@ -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) {