Skip to content

Commit 45009a0

Browse files
committed
add debugging hints for figuring out context switch bugs in the future
1 parent 7c4ca05 commit 45009a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/gam/src/contexts.rs

+2
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ impl ContextManager {
330330
token: [u32; 4],
331331
clear: bool,
332332
) -> Result<(), xous::Error> {
333+
//log::set_max_level(log::LevelFilter::Trace);
333334
self.notify_app_switch(token).ok();
334335

335336
let mut leaving_visibility: bool = false;
@@ -483,6 +484,7 @@ impl ContextManager {
483484
self.redraw().expect("couldn't redraw the currently focused app");
484485
}
485486
}
487+
//log::set_max_level(log::LevelFilter::Info);
486488
Ok(())
487489
}
488490
pub(crate) fn set_pred_api_token(&mut self, at: ApiToken) {

0 commit comments

Comments
 (0)