From 637f143ac1d829cce21fd8ce5e5fc57a5d8a15d8 Mon Sep 17 00:00:00 2001 From: Lucas Vas Date: Tue, 10 Feb 2026 09:04:28 -0500 Subject: [PATCH] chore: tidy several logs to be debug-only --- src/pages/scholarship_info.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/scholarship_info.rs b/src/pages/scholarship_info.rs index 54e438b..ad7ccef 100644 --- a/src/pages/scholarship_info.rs +++ b/src/pages/scholarship_info.rs @@ -1,7 +1,7 @@ use std::collections::HashMap; use leptos::either::Either; use leptos::html::Dialog; -use leptos::logging::log; +use leptos::logging::{debug_log, log}; use leptos::prelude::*; use leptos_oidc::{AuthLoaded, Authenticated}; use leptos_router::hooks::{use_navigate, use_params}; @@ -111,7 +111,7 @@ fn ScholarshipList( (refresh_token.get(), provider_id.get()) }, |(_, provider_id)| async move { - log!("Fetching from scholarship API."); + debug_log!("Fetching from scholarship API."); let Some(provider_id) = provider_id else { return Ok(Vec::new()); }; @@ -179,7 +179,7 @@ fn ScholarshipList( .get() .map(|s| s.subject.clone()) .unwrap_or_default(); - log!("Deleting scholarship with subject {}", subject); + debug_log!("Deleting scholarship with subject {}", subject); delete_action .dispatch(DeleteProviderScholarship { scholarship_id: subject, @@ -385,10 +385,10 @@ fn ScholarshipForm( if let Some(Ok(scholarship)) = scholarship_info.get() { // Get the default chips data. let chips_default = if let Some(ValueType::Map(Some(map))) = scholarship.data.get("requirements") { - log!("Found requirements map: {:?}", map); + debug_log!("Found requirements map: {:?}", map); map.clone() } else { - log!("Couldn't find requirements map in scholarship info. Using empty map."); + debug_log!("Couldn't find requirements map in scholarship info. Using empty map."); HashMap::new() }; @@ -496,7 +496,7 @@ fn ScholarshipForm( info.data = form_data.get(); info.data.insert("requirements".to_string(), ValueType::Map(Some(chips_data.get()))); - log!("Map values: {:?}", info.data); + debug_log!("Map values: {:?}", info.data); submit_action.dispatch(CreateScholarshipInfo { info }); @@ -505,7 +505,7 @@ fn ScholarshipForm( Effect::watch( move || submit_action.value().get(), move |value, _, _| { - log!("Running submit_action effect"); + debug_log!("Running submit_action effect"); let Some(result) = value else { return; };