From 4dd3db28855eb778414740297477d9b98b54b59d Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Wed, 10 Jan 2024 19:49:04 -0500 Subject: [PATCH] change: change all tracing levels to `trace` to reduce verbosity --- integrations/axum/src/lib.rs | 26 +++++++++++++------------- leptos/src/animated_show.rs | 2 +- leptos/src/for_loop.rs | 2 +- leptos/src/portal.rs | 2 +- leptos/src/show.rs | 2 +- leptos/src/suspense_component.rs | 2 +- leptos/src/transition.rs | 2 +- leptos_dom/src/components.rs | 2 +- leptos_dom/src/components/dyn_child.rs | 2 +- leptos_dom/src/components/each.rs | 2 +- leptos_dom/src/components/fragment.rs | 4 ++-- leptos_dom/src/components/unit.rs | 2 +- leptos_dom/src/lib.rs | 26 +++++++++++++------------- leptos_dom/src/ssr.rs | 14 +++++++------- leptos_dom/src/ssr_in_order.rs | 4 ++-- leptos_macro/src/component.rs | 2 +- leptos_reactive/src/context.rs | 4 ++-- leptos_reactive/src/effect.rs | 2 +- leptos_reactive/src/memo.rs | 2 +- leptos_reactive/src/resource.rs | 14 +++++++------- router/src/components/link.rs | 2 +- router/src/components/outlet.rs | 2 +- router/src/components/route.rs | 10 +++++----- router/src/components/routes.rs | 4 ++-- 24 files changed, 68 insertions(+), 68 deletions(-) diff --git a/integrations/axum/src/lib.rs b/integrations/axum/src/lib.rs index 24eede3ad3..7a953b2780 100644 --- a/integrations/axum/src/lib.rs +++ b/integrations/axum/src/lib.rs @@ -457,7 +457,7 @@ pub type PinnedHtmlStream = /// - [ResponseOptions] /// - [MetaContext](leptos_meta::MetaContext) /// - [RouterIntegrationContext](leptos_router::RouterIntegrationContext) -#[tracing::instrument(level = "info", fields(error), skip_all)] +#[tracing::instrument(level = "trace", fields(error), skip_all)] pub fn render_app_to_stream( options: LeptosOptions, app_fn: impl Fn() -> IV + Clone + Send + 'static, @@ -483,7 +483,7 @@ where /// The difference between calling this and `render_app_to_stream_with_context()` is that this /// one respects the `SsrMode` on each Route and thus requires `Vec` for route checking. /// This is useful if you are using `.leptos_routes_with_handler()` -#[tracing::instrument(level = "info", fields(error), skip_all)] +#[tracing::instrument(level = "trace", fields(error), skip_all)] pub fn render_route( options: LeptosOptions, paths: Vec, @@ -558,7 +558,7 @@ where /// - [ResponseOptions] /// - [MetaContext](leptos_meta::MetaContext) /// - [RouterIntegrationContext](leptos_router::RouterIntegrationContext) -#[tracing::instrument(level = "info", fields(error), skip_all)] +#[tracing::instrument(level = "trace", fields(error), skip_all)] pub fn render_app_to_stream_in_order( options: LeptosOptions, app_fn: impl Fn() -> IV + Clone + Send + 'static, @@ -604,7 +604,7 @@ where /// - [ResponseOptions] /// - [MetaContext](leptos_meta::MetaContext) /// - [RouterIntegrationContext](leptos_router::RouterIntegrationContext) -#[tracing::instrument(level = "info", fields(error), skip_all)] +#[tracing::instrument(level = "trace", fields(error), skip_all)] pub fn render_app_to_stream_with_context( options: LeptosOptions, additional_context: impl Fn() + 'static + Clone + Send, @@ -636,7 +636,7 @@ where /// The difference between calling this and `render_app_to_stream_with_context()` is that this /// one respects the `SsrMode` on each Route, and thus requires `Vec` for route checking. /// This is useful if you are using `.leptos_routes_with_handler()`. -#[tracing::instrument(level = "info", fields(error), skip_all)] +#[tracing::instrument(level = "trace", fields(error), skip_all)] pub fn render_route_with_context( options: LeptosOptions, paths: Vec, @@ -724,7 +724,7 @@ where /// - [ResponseOptions] /// - [MetaContext](leptos_meta::MetaContext) /// - [RouterIntegrationContext](leptos_router::RouterIntegrationContext) -#[tracing::instrument(level = "info", fields(error), skip_all)] +#[tracing::instrument(level = "trace", fields(error), skip_all)] pub fn render_app_to_stream_with_context_and_replace_blocks( options: LeptosOptions, additional_context: impl Fn() + 'static + Clone + Send, @@ -787,7 +787,7 @@ where } } -#[tracing::instrument(level = "info", fields(error), skip_all)] +#[tracing::instrument(level = "trace", fields(error), skip_all)] async fn generate_response( res_options: ResponseOptions, rx: Receiver, @@ -829,7 +829,7 @@ async fn generate_response( } res } -#[tracing::instrument(level = "info", fields(error), skip_all)] +#[tracing::instrument(level = "trace", fields(error), skip_all)] async fn forward_stream( options: &LeptosOptions, res_options2: ResponseOptions, @@ -890,7 +890,7 @@ async fn forward_stream( /// - [ResponseOptions] /// - [MetaContext](leptos_meta::MetaContext) /// - [RouterIntegrationContext](leptos_router::RouterIntegrationContext) -#[tracing::instrument(level = "info", fields(error), skip_all)] +#[tracing::instrument(level = "trace", fields(error), skip_all)] pub fn render_app_to_stream_in_order_with_context( options: LeptosOptions, additional_context: impl Fn() + 'static + Clone + Send, @@ -1026,7 +1026,7 @@ fn provide_contexts( /// - [ResponseOptions] /// - [MetaContext](leptos_meta::MetaContext) /// - [RouterIntegrationContext](leptos_router::RouterIntegrationContext) -#[tracing::instrument(level = "info", fields(error), skip_all)] +#[tracing::instrument(level = "trace", fields(error), skip_all)] pub fn render_app_async( options: LeptosOptions, app_fn: impl Fn() -> IV + Clone + Send + 'static, @@ -1068,7 +1068,7 @@ where /// - [ResponseOptions] /// - [MetaContext](leptos_meta::MetaContext) /// - [RouterIntegrationContext](leptos_router::RouterIntegrationContext) -#[tracing::instrument(level = "info", fields(error), skip_all)] +#[tracing::instrument(level = "trace", fields(error), skip_all)] pub fn render_app_async_stream_with_context( options: LeptosOptions, additional_context: impl Fn() + 'static + Clone + Send, @@ -1204,7 +1204,7 @@ where /// - [ResponseOptions] /// - [MetaContext](leptos_meta::MetaContext) /// - [RouterIntegrationContext](leptos_router::RouterIntegrationContext) -#[tracing::instrument(level = "info", fields(error), skip_all)] +#[tracing::instrument(level = "trace", fields(error), skip_all)] pub fn render_app_async_with_context( options: LeptosOptions, additional_context: impl Fn() + 'static + Clone + Send, @@ -1677,7 +1677,7 @@ where LeptosOptions: FromRef, S: Clone + Send + Sync + 'static, { - #[tracing::instrument(level = "info", fields(error), skip_all)] + #[tracing::instrument(level = "trace", fields(error), skip_all)] fn leptos_routes( self, options: &S, diff --git a/leptos/src/animated_show.rs b/leptos/src/animated_show.rs index 590c57c961..8a4db98c84 100644 --- a/leptos/src/animated_show.rs +++ b/leptos/src/animated_show.rs @@ -45,7 +45,7 @@ use leptos_reactive::{ /// ``` #[cfg_attr( any(debug_assertions, feature = "ssr"), - tracing::instrument(level = "info", skip_all) + tracing::instrument(level = "trace", skip_all) )] #[component] pub fn AnimatedShow( diff --git a/leptos/src/for_loop.rs b/leptos/src/for_loop.rs index b125e1488d..0561f07d8f 100644 --- a/leptos/src/for_loop.rs +++ b/leptos/src/for_loop.rs @@ -52,7 +52,7 @@ use std::hash::Hash; /// ``` #[cfg_attr( any(debug_assertions, feature = "ssr"), - tracing::instrument(level = "info", skip_all) + tracing::instrument(level = "trace", skip_all) )] #[component(transparent)] pub fn For( diff --git a/leptos/src/portal.rs b/leptos/src/portal.rs index 2349ca0e9f..675ba27b4f 100644 --- a/leptos/src/portal.rs +++ b/leptos/src/portal.rs @@ -11,7 +11,7 @@ use leptos_macro::component; /// Setting `use_shadow` to `true` places the element in a shadow root to isolate styles. #[cfg_attr( any(debug_assertions, feature = "ssr"), - tracing::instrument(level = "info", skip_all) + tracing::instrument(level = "trace", skip_all) )] #[component] pub fn Portal( diff --git a/leptos/src/show.rs b/leptos/src/show.rs index 984910044c..f05a0253c3 100644 --- a/leptos/src/show.rs +++ b/leptos/src/show.rs @@ -28,7 +28,7 @@ use leptos_reactive::{create_memo, signal_prelude::*}; /// ``` #[cfg_attr( any(debug_assertions, feature = "ssr"), - tracing::instrument(level = "info", skip_all) + tracing::instrument(level = "trace", skip_all) )] #[component] pub fn Show( diff --git a/leptos/src/suspense_component.rs b/leptos/src/suspense_component.rs index 204d7ad8fc..82b780b3d3 100644 --- a/leptos/src/suspense_component.rs +++ b/leptos/src/suspense_component.rs @@ -57,7 +57,7 @@ use std::rc::Rc; /// ``` #[cfg_attr( any(debug_assertions, feature = "ssr"), - tracing::instrument(level = "info", skip_all) + tracing::instrument(level = "trace", skip_all) )] #[component] pub fn Suspense( diff --git a/leptos/src/transition.rs b/leptos/src/transition.rs index 2b7baeb1ca..e8a5a1938d 100644 --- a/leptos/src/transition.rs +++ b/leptos/src/transition.rs @@ -64,7 +64,7 @@ use std::{ /// ``` #[cfg_attr( any(debug_assertions, feature = "ssr"), - tracing::instrument(level = "info", skip_all) + tracing::instrument(level = "trace", skip_all) )] #[component(transparent)] pub fn Transition( diff --git a/leptos_dom/src/components.rs b/leptos_dom/src/components.rs index a90dda08db..3d04236870 100644 --- a/leptos_dom/src/components.rs +++ b/leptos_dom/src/components.rs @@ -158,7 +158,7 @@ impl From for View { } impl IntoView for ComponentRepr { - #[cfg_attr(any(debug_assertions, feature = "ssr"), instrument(level = "info", name = "", skip_all, fields(name = %self.name)))] + #[cfg_attr(any(debug_assertions, feature = "ssr"), instrument(level = "trace", name = "", skip_all, fields(name = %self.name)))] fn into_view(self) -> View { self.into() } diff --git a/leptos_dom/src/components/dyn_child.rs b/leptos_dom/src/components/dyn_child.rs index 5eb6ac85fc..61bbb73e29 100644 --- a/leptos_dom/src/components/dyn_child.rs +++ b/leptos_dom/src/components/dyn_child.rs @@ -158,7 +158,7 @@ where { #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", name = "", skip_all) + instrument(level = "trace", name = "", skip_all) )] #[inline] fn into_view(self) -> View { diff --git a/leptos_dom/src/components/each.rs b/leptos_dom/src/components/each.rs index 6ae9676b99..115523995d 100644 --- a/leptos_dom/src/components/each.rs +++ b/leptos_dom/src/components/each.rs @@ -382,7 +382,7 @@ where { #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", name = "", skip_all) + instrument(level = "trace", name = "", skip_all) )] fn into_view(self) -> crate::View { let Self { diff --git a/leptos_dom/src/components/fragment.rs b/leptos_dom/src/components/fragment.rs index 6ff42416d2..2c4f80fb52 100644 --- a/leptos_dom/src/components/fragment.rs +++ b/leptos_dom/src/components/fragment.rs @@ -15,7 +15,7 @@ where { #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", skip_all,) + instrument(level = "trace", skip_all,) )] fn into_fragment(self) -> Fragment { self.into_iter().map(|v| v.into_view()).collect() @@ -110,7 +110,7 @@ impl Fragment { } impl IntoView for Fragment { - #[cfg_attr(debug_assertions, instrument(level = "info", name = "", skip_all, fields(children = self.nodes.len())))] + #[cfg_attr(debug_assertions, instrument(level = "trace", name = "", skip_all, fields(children = self.nodes.len())))] fn into_view(self) -> View { self.into() } diff --git a/leptos_dom/src/components/unit.rs b/leptos_dom/src/components/unit.rs index b7aaf92b93..34a91573e7 100644 --- a/leptos_dom/src/components/unit.rs +++ b/leptos_dom/src/components/unit.rs @@ -63,7 +63,7 @@ pub struct Unit; impl IntoView for Unit { #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", name = "<() />", skip_all) + instrument(level = "trace", name = "<() />", skip_all) )] fn into_view(self) -> crate::View { let component = UnitRepr::default(); diff --git a/leptos_dom/src/lib.rs b/leptos_dom/src/lib.rs index 89476f3e83..740710dcfc 100644 --- a/leptos_dom/src/lib.rs +++ b/leptos_dom/src/lib.rs @@ -101,7 +101,7 @@ pub trait Mountable { impl IntoView for () { #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", name = "<() />", skip_all) + instrument(level = "trace", name = "<() />", skip_all) )] fn into_view(self) -> View { Unit.into_view() @@ -114,7 +114,7 @@ where { #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", name = "Option", skip_all) + instrument(level = "trace", name = "Option", skip_all) )] fn into_view(self) -> View { if let Some(t) = self { @@ -132,7 +132,7 @@ where { #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", name = "Fn() -> impl IntoView", skip_all) + instrument(level = "trace", name = "Fn() -> impl IntoView", skip_all) )] #[track_caller] fn into_view(self) -> View { @@ -246,7 +246,7 @@ pub trait CollectView { impl, T: IntoView> CollectView for I { #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", name = "#text", skip_all) + instrument(level = "trace", name = "#text", skip_all) )] fn collect_view(self) -> View { self.into_iter() @@ -381,7 +381,7 @@ impl Element { } impl IntoView for Element { - #[cfg_attr(debug_assertions, instrument(level = "info", name = "", skip_all, fields(tag = %self.name)))] + #[cfg_attr(debug_assertions, instrument(level = "trace", name = "", skip_all, fields(tag = %self.name)))] fn into_view(self) -> View { View::Element(self) } @@ -501,7 +501,7 @@ impl fmt::Debug for Text { } impl IntoView for Text { - #[cfg_attr(debug_assertions, instrument(level = "info", name = "#text", skip_all, fields(content = %self.content)))] + #[cfg_attr(debug_assertions, instrument(level = "trace", name = "#text", skip_all, fields(content = %self.content)))] fn into_view(self) -> View { View::Text(self) } @@ -566,7 +566,7 @@ impl Default for View { } impl IntoView for View { - #[cfg_attr(debug_assertions, instrument(level = "info", name = "Node", skip_all, fields(kind = self.kind_name())))] + #[cfg_attr(debug_assertions, instrument(level = "trace", name = "Node", skip_all, fields(kind = self.kind_name())))] fn into_view(self) -> View { self } @@ -581,7 +581,7 @@ impl IntoView for &View { impl IntoView for [View; N] { #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", name = "[Node; N]", skip_all) + instrument(level = "trace", name = "[Node; N]", skip_all) )] fn into_view(self) -> View { Fragment::new(self.into_iter().collect()).into_view() @@ -1135,7 +1135,7 @@ api_planning! { impl IntoView for String { #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", name = "#text", skip_all) + instrument(level = "trace", name = "#text", skip_all) )] #[inline(always)] fn into_view(self) -> View { @@ -1146,7 +1146,7 @@ impl IntoView for String { impl IntoView for &'static str { #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", name = "#text", skip_all) + instrument(level = "trace", name = "#text", skip_all) )] #[inline(always)] fn into_view(self) -> View { @@ -1157,7 +1157,7 @@ impl IntoView for &'static str { impl IntoView for Oco<'static, str> { #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", name = "#text", skip_all) + instrument(level = "trace", name = "#text", skip_all) )] #[inline(always)] fn into_view(self) -> View { @@ -1171,7 +1171,7 @@ where { #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", name = "#text", skip_all) + instrument(level = "trace", name = "#text", skip_all) )] fn into_view(self) -> View { self.into_iter() @@ -1184,7 +1184,7 @@ where impl IntoView for core::fmt::Arguments<'_> { #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", name = "#text", skip_all) + instrument(level = "trace", name = "#text", skip_all) )] fn into_view(self) -> View { match self.as_str() { diff --git a/leptos_dom/src/ssr.rs b/leptos_dom/src/ssr.rs index c8324a50e0..562cf79f6c 100644 --- a/leptos_dom/src/ssr.rs +++ b/leptos_dom/src/ssr.rs @@ -28,7 +28,7 @@ type PinnedFuture = Pin>>; /// ``` #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", skip_all,) + instrument(level = "trace", skip_all,) )] pub fn render_to_string(f: F) -> Oco<'static, str> where @@ -59,7 +59,7 @@ where /// read under that `` resolve. #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", skip_all,) + instrument(level = "trace", skip_all,) )] pub fn render_to_stream( view: impl FnOnce() -> View + 'static, @@ -83,7 +83,7 @@ pub fn render_to_stream( /// read under that `` resolve. #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", skip_all,) + instrument(level = "trace", skip_all,) )] pub fn render_to_stream_with_prefix( view: impl FnOnce() -> View + 'static, @@ -112,7 +112,7 @@ pub fn render_to_stream_with_prefix( /// read under that `` resolve. #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", skip_all,) + instrument(level = "trace", skip_all,) )] pub fn render_to_stream_with_prefix_undisposed( view: impl FnOnce() -> View + 'static, @@ -138,7 +138,7 @@ pub fn render_to_stream_with_prefix_undisposed( /// read under that `` resolve. #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", skip_all,) + instrument(level = "trace", skip_all,) )] pub fn render_to_stream_with_prefix_undisposed_with_context( view: impl FnOnce() -> View + 'static, @@ -175,7 +175,7 @@ pub fn render_to_stream_with_prefix_undisposed_with_context( /// read under that `` resolve. #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", skip_all,) + instrument(level = "trace", skip_all,) )] pub fn render_to_stream_with_prefix_undisposed_with_context_and_block_replacement( view: impl FnOnce() -> View + 'static, @@ -365,7 +365,7 @@ impl View { /// Consumes the node and renders it into an HTML string. #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "info", skip_all,) + instrument(level = "trace", skip_all,) )] pub fn render_to_string(self) -> Oco<'static, str> { #[cfg(all(feature = "web", feature = "ssr"))] diff --git a/leptos_dom/src/ssr_in_order.rs b/leptos_dom/src/ssr_in_order.rs index 18fea63de9..ff4cbb96af 100644 --- a/leptos_dom/src/ssr_in_order.rs +++ b/leptos_dom/src/ssr_in_order.rs @@ -17,7 +17,7 @@ use std::collections::VecDeque; /// Renders a view to HTML, waiting to return until all `async` [Resource](leptos_reactive::Resource)s /// loaded in `` elements have finished loading. -#[tracing::instrument(level = "info", skip_all)] +#[tracing::instrument(level = "trace", skip_all)] pub async fn render_to_string_async( view: impl FnOnce() -> View + 'static, ) -> String { @@ -40,7 +40,7 @@ pub async fn render_to_string_async( /// in order: /// 1. HTML from the `view` in order, pausing to wait for each `` /// 2. any serialized [Resource](leptos_reactive::Resource)s -#[tracing::instrument(level = "info", skip_all)] +#[tracing::instrument(level = "trace", skip_all)] pub fn render_to_stream_in_order( view: impl FnOnce() -> View + 'static, ) -> impl Stream { diff --git a/leptos_macro/src/component.rs b/leptos_macro/src/component.rs index 3bd36c0c2c..029a8aeee1 100644 --- a/leptos_macro/src/component.rs +++ b/leptos_macro/src/component.rs @@ -190,7 +190,7 @@ impl ToTokens for Model { #[allow(clippy::let_with_type_underscore)] #[cfg_attr( any(debug_assertions, feature="ssr"), - ::leptos::leptos_dom::tracing::instrument(level = "info", name = #trace_name, skip_all) + ::leptos::leptos_dom::tracing::instrument(level = "trace", name = #trace_name, skip_all) )] }, quote! { diff --git a/leptos_reactive/src/context.rs b/leptos_reactive/src/context.rs index 5037fc2539..2f098fbc01 100644 --- a/leptos_reactive/src/context.rs +++ b/leptos_reactive/src/context.rs @@ -156,7 +156,7 @@ use std::any::{Any, TypeId}; /// ``` #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "debug", skip_all,) + instrument(level = "trace", skip_all,) )] #[track_caller] pub fn provide_context(value: T) @@ -230,7 +230,7 @@ where /// ``` #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "debug", skip_all,) + instrument(level = "trace", skip_all,) )] pub fn use_context() -> Option where diff --git a/leptos_reactive/src/effect.rs b/leptos_reactive/src/effect.rs index 3062d3c2e6..9328d404ef 100644 --- a/leptos_reactive/src/effect.rs +++ b/leptos_reactive/src/effect.rs @@ -341,7 +341,7 @@ where any(debug_assertions, feature = "ssr"), instrument( name = "Effect::run()", - level = "debug", + level = "trace", skip_all, fields( defined_at = %self.defined_at, diff --git a/leptos_reactive/src/memo.rs b/leptos_reactive/src/memo.rs index a86ebce4d4..b7b560d691 100644 --- a/leptos_reactive/src/memo.rs +++ b/leptos_reactive/src/memo.rs @@ -537,7 +537,7 @@ where any(debug_assertions, feature = "ssr"), instrument( name = "Memo::run()", - level = "debug", + level = "trace", skip_all, fields( defined_at = %self.defined_at, diff --git a/leptos_reactive/src/resource.rs b/leptos_reactive/src/resource.rs index 753e248531..3d5e89839f 100644 --- a/leptos_reactive/src/resource.rs +++ b/leptos_reactive/src/resource.rs @@ -86,7 +86,7 @@ use std::{ #[cfg_attr( any(debug_assertions, feature="ssr"), instrument( - level = "debug", + level = "trace", skip_all, fields( ty = %std::any::type_name::(), @@ -120,7 +120,7 @@ where #[cfg_attr( any(debug_assertions, feature="ssr"), instrument( - level = "debug", + level = "trace", skip_all, fields( ty = %std::any::type_name::(), @@ -169,7 +169,7 @@ where #[cfg_attr( any(debug_assertions, feature="ssr"), instrument( - level = "debug", + level = "trace", skip_all, fields( ty = %std::any::type_name::(), @@ -295,7 +295,7 @@ where #[cfg_attr( any(debug_assertions, feature="ssr"), instrument( - level = "debug", + level = "trace", skip_all, fields( ty = %std::any::type_name::(), @@ -328,7 +328,7 @@ where #[cfg_attr( any(debug_assertions, feature="ssr"), instrument( - level = "debug", + level = "trace", skip_all, fields( ty = %std::any::type_name::(), @@ -500,7 +500,7 @@ where /// (`value.read()` is equivalent to `value.with(T::clone)`.) #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "debug", skip_all,) + instrument(level = "trace", skip_all,) )] #[track_caller] #[deprecated = "You can now use .get() on resources."] @@ -520,7 +520,7 @@ where /// [`Resource::read`]. #[cfg_attr( any(debug_assertions, feature = "ssr"), - instrument(level = "debug", skip_all,) + instrument(level = "trace", skip_all,) )] #[track_caller] pub fn map(&self, f: impl FnOnce(&T) -> U) -> Option { diff --git a/router/src/components/link.rs b/router/src/components/link.rs index 56d739c4d8..08a0524be4 100644 --- a/router/src/components/link.rs +++ b/router/src/components/link.rs @@ -59,7 +59,7 @@ where /// different color if it’s a link to the page you’re currently on. #[cfg_attr( any(debug_assertions, feature = "ssr"), - tracing::instrument(level = "info", skip_all,) + tracing::instrument(level = "trace", skip_all,) )] #[component] pub fn A( diff --git a/router/src/components/outlet.rs b/router/src/components/outlet.rs index 87392a3810..760db3ae4a 100644 --- a/router/src/components/outlet.rs +++ b/router/src/components/outlet.rs @@ -11,7 +11,7 @@ use web_sys::AnimationEvent; /// that child route is displayed. Renders nothing if there is no nested child. #[cfg_attr( any(debug_assertions, feature = "ssr"), - tracing::instrument(level = "info", skip_all,) + tracing::instrument(level = "trace", skip_all,) )] #[component] pub fn Outlet() -> impl IntoView { diff --git a/router/src/components/route.rs b/router/src/components/route.rs index 62e119946b..c988ad81b1 100644 --- a/router/src/components/route.rs +++ b/router/src/components/route.rs @@ -43,7 +43,7 @@ pub enum Method { /// the element it should display, and data that should be loaded alongside the route. #[cfg_attr( any(debug_assertions, feature = "ssr"), - tracing::instrument(level = "info", skip_all,) + tracing::instrument(level = "trace", skip_all,) )] #[component(transparent)] pub fn Route( @@ -91,7 +91,7 @@ where /// redirects to `redirect_path` instead of displaying its `view`. #[cfg_attr( any(debug_assertions, feature = "ssr"), - tracing::instrument(level = "info", skip_all,) + tracing::instrument(level = "trace", skip_all,) )] #[component(transparent)] pub fn ProtectedRoute( @@ -150,7 +150,7 @@ where /// the element it should display, and data that should be loaded alongside the route. #[cfg_attr( any(debug_assertions, feature = "ssr"), - tracing::instrument(level = "info", skip_all,) + tracing::instrument(level = "trace", skip_all,) )] #[component(transparent)] pub fn StaticRoute( @@ -198,7 +198,7 @@ where #[cfg_attr( any(debug_assertions, feature = "ssr"), - tracing::instrument(level = "info", skip_all,) + tracing::instrument(level = "trace", skip_all,) )] #[allow(clippy::too_many_arguments)] pub(crate) fn define_route( @@ -260,7 +260,7 @@ pub struct RouteContext { impl RouteContext { #[cfg_attr( any(debug_assertions, feature = "ssr"), - tracing::instrument(level = "info", skip_all,) + tracing::instrument(level = "trace", skip_all,) )] pub(crate) fn new( router: &RouterContext, diff --git a/router/src/components/routes.rs b/router/src/components/routes.rs index d94419618a..e03898d588 100644 --- a/router/src/components/routes.rs +++ b/router/src/components/routes.rs @@ -66,7 +66,7 @@ use std::{ /// ``` #[cfg_attr( any(debug_assertions, feature = "ssr"), - tracing::instrument(level = "info", skip_all,) + tracing::instrument(level = "trace", skip_all,) )] #[component] pub fn Routes( @@ -630,7 +630,7 @@ pub(crate) fn create_branch(routes: &[RouteData], index: usize) -> Branch { #[cfg_attr( any(debug_assertions, feature = "ssr"), - tracing::instrument(level = "info", skip_all,) + tracing::instrument(level = "trace", skip_all,) )] fn create_routes( route_def: &RouteDefinition,