From: Stephen Seo Date: Tue, 1 Mar 2022 07:09:10 +0000 (+0900) Subject: Removed unnecessary debug logs X-Git-Tag: sprint_01_day_2~3 X-Git-Url: https://git.seodisparate.com/tbm-edit-custom.png?a=commitdiff_plain;h=6316bd2fdcb76b52dcd5a2476005da45f900f319;p=EN605.607.81.SP22_ASDM_Project Removed unnecessary debug logs Also removed unnecessary feature from web-sys dependency. --- diff --git a/front_end/Cargo.toml b/front_end/Cargo.toml index 9070eaa..948d964 100644 --- a/front_end/Cargo.toml +++ b/front_end/Cargo.toml @@ -9,5 +9,4 @@ edition = "2021" yew = "0.19" log = "0.4.6" wasm-logger = "0.2.0" -web-sys = { version = "0.3.56", features = ["HtmlParagraphElement", "HtmlBrElement"] } - +web-sys = { version = "0.3.56", features = ["HtmlParagraphElement"] } diff --git a/front_end/src/main.rs b/front_end/src/main.rs index b86a99c..bee0e46 100644 --- a/front_end/src/main.rs +++ b/front_end/src/main.rs @@ -179,7 +179,8 @@ impl Component for Slot { if let Err(e) = result { log::error!("Error pushing msg to bus: {}", e); } else { - log::info!("Pushed \"pressed {idx}\" msg to bus"); + // DEBUG + //log::info!("Pushed \"pressed {idx}\" msg to bus"); } } } @@ -286,7 +287,8 @@ impl Component for Wrapper { if split_str[0] == "pressed" { if let Ok(idx) = split_str[1].parse::() { let output_str: String = format!("Got {idx} pressed."); - log::info!("{}", &output_str); + // DEBUG + //log::info!("{}", &output_str); if let Some(info_text) = shared.info_text_ref.cast::() {