From 9c191ae586369e1217b9c809b52ad7f7253c8cf4 Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Wed, 30 Oct 2024 00:27:16 -0700 Subject: [PATCH] Polish log messages --- app-proto/src/add_remove.rs | 4 ++-- app-proto/src/assembly.rs | 2 +- app-proto/src/engine.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app-proto/src/add_remove.rs b/app-proto/src/add_remove.rs index 5435418..92ae4be 100644 --- a/app-proto/src/add_remove.rs +++ b/app-proto/src/add_remove.rs @@ -228,7 +228,7 @@ pub fn AddRemove() -> View { /* DEBUG */ // print updated constraint list - console::log_1(&JsValue::from("constraints:")); + console::log_1(&JsValue::from("Constraints:")); state.assembly.constraints.with(|csts| { for (_, cst) in csts.into_iter() { console::log_5( @@ -246,7 +246,7 @@ pub fn AddRemove() -> View { create_effect(move || { rep.track(); console::log_2( - &JsValue::from("Constraint rep updated to"), + &JsValue::from("Lorentz product updated to"), &JsValue::from(rep.get_untracked()) ); if active.get() { diff --git a/app-proto/src/assembly.rs b/app-proto/src/assembly.rs index 62f5405..0970932 100644 --- a/app-proto/src/assembly.rs +++ b/app-proto/src/assembly.rs @@ -146,7 +146,7 @@ impl Assembly { /* DEBUG */ // log the initial configuration matrix - console::log_1(&JsValue::from("old configuration:")); + console::log_1(&JsValue::from("Old configuration:")); for j in 0..guess.nrows() { let mut row_str = String::new(); for k in 0..guess.ncols() { diff --git a/app-proto/src/engine.rs b/app-proto/src/engine.rs index 2971750..2978a9a 100644 --- a/app-proto/src/engine.rs +++ b/app-proto/src/engine.rs @@ -60,7 +60,7 @@ impl PartialMatrix { pub fn log_to_console(&self) { let PartialMatrix(entries) = self; for ent in entries { - let ent_str = format!("{} {} {}", ent.index.0, ent.index.1, ent.value); + let ent_str = format!(" {} {} {}", ent.index.0, ent.index.1, ent.value); console::log_1(&JsValue::from(ent_str.as_str())); } }