Removed unnecessary debug logs
Also removed unnecessary feature from web-sys dependency.
This commit is contained in:
parent
720c9fdbcb
commit
6316bd2fdc
2 changed files with 5 additions and 4 deletions
|
@ -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"] }
|
||||
|
|
|
@ -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::<u8>() {
|
||||
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::<web_sys::HtmlParagraphElement>()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue