diff --git a/services/graphics-server/src/main.rs b/services/graphics-server/src/main.rs index ae6a281ef..8645879bc 100644 --- a/services/graphics-server/src/main.rs +++ b/services/graphics-server/src/main.rs @@ -57,6 +57,8 @@ fn map_fonts() { #[xous::xous_main] fn xmain() -> ! { log_server::init_wait().unwrap(); + let debugtv = false; + log::set_max_level(log::LevelFilter::Info); log::info!("my PID is {}", xous::process::id()); let xns = xous_names::XousNames::new().unwrap(); @@ -89,7 +91,6 @@ fn xmain() -> ! { let screen_clip = Rectangle::new(Point::new(0,0), display.screen_size()); - let debugtv = false; display.redraw(); loop { let mut msg = xous::receive_message(sid).unwrap(); @@ -296,7 +297,7 @@ fn xmain() -> ! { }; let mut ref_cursor = blitstr::Cursor::from_top_left_of(cr.into()); - if debugtv { log::trace!("(TV): paint_str with {:?} | {:?} | {:?} | {:?}", cr, ref_cursor, tv.style, tv.text); } + if debugtv { log::trace!("(TV): paint_str with {:?} | {:?} | {:?} | {:?} len: {}", cr, ref_cursor, tv.style, tv.text, tv.text.as_str().unwrap().len()); } blitstr::paint_str( display.native_buffer(), cr.into(), diff --git a/services/ime-frontend/src/main.rs b/services/ime-frontend/src/main.rs index 6ac5d940c..c35c80aa2 100644 --- a/services/ime-frontend/src/main.rs +++ b/services/ime-frontend/src/main.rs @@ -560,6 +560,7 @@ impl InputTracker { p_tv.ellipsis = true; p_tv.style = blitstr::GlyphStyle::Small; write!(p_tv.text, "{}", pred_str).expect("can't write the prediction string"); + log::trace!("****posting string with length {}", p_tv.text.as_str().unwrap().len()); self.gam.post_textview(&mut p_tv).expect("couldn't post prediction text"); i += 1; } @@ -600,7 +601,7 @@ fn xmain() -> ! { let dbglistener = false; let dbgcanvas = false; log_server::init_wait().unwrap(); - log::set_max_level(log::LevelFilter::Trace); + log::set_max_level(log::LevelFilter::Info); info!("my PID is {}", xous::process::id()); let xns = xous_names::XousNames::new().unwrap(); diff --git a/services/ime-plugin-shell/src/main.rs b/services/ime-plugin-shell/src/main.rs index c8d803660..03eea077c 100644 --- a/services/ime-plugin-shell/src/main.rs +++ b/services/ime-plugin-shell/src/main.rs @@ -13,6 +13,7 @@ use num_traits::FromPrimitive; #[xous::xous_main] fn xmain() -> ! { log_server::init_wait().unwrap(); + log::set_max_level(log::LevelFilter::Info); info!("my PID is {}", xous::process::id()); let xns = xous_names::XousNames::new().unwrap(); @@ -56,7 +57,7 @@ fn xmain() -> ! { // the API allows for large picked feedback, but this implementation only keeps the first 64 characters let mut local_s: String<64> = String::new(); use core::fmt::Write; - write!(local_s, "{:32}", s.as_str()).expect("overflowed history variable"); + write!(local_s, "{}", s.as_str()).expect("overflowed history variable"); log::trace!("storing history value | {}", s.as_str()); if history.len() == history_max { history.dequeue().expect("couldn't dequeue history"); diff --git a/services/llio/src/main.rs b/services/llio/src/main.rs index 5a754377a..6d14f00e4 100644 --- a/services/llio/src/main.rs +++ b/services/llio/src/main.rs @@ -450,7 +450,7 @@ fn xmain() -> ! { let gpio_base = crate::implementation::log_init(); log_server::init_wait().unwrap(); - log::set_max_level(log::LevelFilter::Trace); + log::set_max_level(log::LevelFilter::Info); info!("my PID is {}", xous::process::id()); let xns = xous_names::XousNames::new().unwrap(); diff --git a/services/shellchat/src/main.rs b/services/shellchat/src/main.rs index 1cc8e9164..f8a9ccee6 100644 --- a/services/shellchat/src/main.rs +++ b/services/shellchat/src/main.rs @@ -237,7 +237,7 @@ pub(crate) const SERVER_NAME_SHELLCHAT: &str = "_Shell chat application_"; #[xous::xous_main] fn xmain() -> ! { log_server::init_wait().unwrap(); - log::set_max_level(log::LevelFilter::Trace); + log::set_max_level(log::LevelFilter::Info); info!("my PID is {}", xous::process::id()); let xns = xous_names::XousNames::new().unwrap(); diff --git a/services/ticktimer-server/Cargo.toml b/services/ticktimer-server/Cargo.toml index cc09d147e..b80f6af5b 100644 --- a/services/ticktimer-server/Cargo.toml +++ b/services/ticktimer-server/Cargo.toml @@ -22,6 +22,6 @@ utralib = {path = "../../utralib"} debug-print = [] watchdog = [] # generally you want to disable watchdog if you're doing development. -#default = ["watchdog"] -default = [] +default = ["watchdog"] +#default = [] # default = ["debug-print"] diff --git a/services/ticktimer-server/src/main.rs b/services/ticktimer-server/src/main.rs index 428efc57d..119f5a3f3 100644 --- a/services/ticktimer-server/src/main.rs +++ b/services/ticktimer-server/src/main.rs @@ -431,6 +431,7 @@ fn xmain() -> ! { let mut sleep_heap: BinaryHeap = BinaryHeap::new(); log_server::init_wait().unwrap(); + log::set_max_level(log::LevelFilter::Info); info!("my PID is {}", xous::process::id()); let ticktimer_server = xous::create_server_with_address(b"ticktimer-server") diff --git a/services/trng/src/main.rs b/services/trng/src/main.rs index 5154076cf..92672b9f3 100644 --- a/services/trng/src/main.rs +++ b/services/trng/src/main.rs @@ -150,6 +150,7 @@ fn xmain() -> ! { use crate::implementation::Trng; log_server::init_wait().unwrap(); + log::set_max_level(log::LevelFilter::Info); info!("my PID is {}", xous::process::id()); let xns = xous_names::XousNames::new().unwrap(); diff --git a/services/xous-names/src/main.rs b/services/xous-names/src/main.rs index 9aac5e2c8..1d3e2a4ca 100644 --- a/services/xous-names/src/main.rs +++ b/services/xous-names/src/main.rs @@ -22,6 +22,7 @@ const FAIL_TIMEOUT_MS: u64 = 100; fn xmain() -> ! { let debug1 = false; log_server::init_wait().unwrap(); + log::set_max_level(log::LevelFilter::Info); info!("my PID is {}", xous::process::id()); let name_server = xous::create_server_with_address(b"xous-name-server")