mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
change: change all tracing levels to trace
to reduce verbosity (#2176)
This commit is contained in:
parent
1eaf886481
commit
d71feada7e
24 changed files with 68 additions and 68 deletions
|
@ -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<IV>(
|
||||
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<RouteListing>` 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<IV>(
|
||||
options: LeptosOptions,
|
||||
paths: Vec<RouteListing>,
|
||||
|
@ -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<IV>(
|
||||
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<IV>(
|
||||
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<RouteListing>` 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<IV>(
|
||||
options: LeptosOptions,
|
||||
paths: Vec<RouteListing>,
|
||||
|
@ -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<IV>(
|
||||
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<String>,
|
||||
|
@ -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<IV>(
|
||||
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<IV>(
|
||||
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<IV>(
|
||||
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<IV>(
|
||||
options: LeptosOptions,
|
||||
additional_context: impl Fn() + 'static + Clone + Send,
|
||||
|
@ -1677,7 +1677,7 @@ where
|
|||
LeptosOptions: FromRef<S>,
|
||||
S: Clone + Send + Sync + 'static,
|
||||
{
|
||||
#[tracing::instrument(level = "info", fields(error), skip_all)]
|
||||
#[tracing::instrument(level = "trace", fields(error), skip_all)]
|
||||
fn leptos_routes<IV>(
|
||||
self,
|
||||
options: &S,
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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<IF, I, T, EF, N, KF, K>(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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<W>(
|
||||
|
|
|
@ -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<V>(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -158,7 +158,7 @@ impl From<ComponentRepr> for View {
|
|||
}
|
||||
|
||||
impl IntoView for ComponentRepr {
|
||||
#[cfg_attr(any(debug_assertions, feature = "ssr"), instrument(level = "info", name = "<Component />", skip_all, fields(name = %self.name)))]
|
||||
#[cfg_attr(any(debug_assertions, feature = "ssr"), instrument(level = "trace", name = "<Component />", skip_all, fields(name = %self.name)))]
|
||||
fn into_view(self) -> View {
|
||||
self.into()
|
||||
}
|
||||
|
|
|
@ -158,7 +158,7 @@ where
|
|||
{
|
||||
#[cfg_attr(
|
||||
any(debug_assertions, feature = "ssr"),
|
||||
instrument(level = "info", name = "<DynChild />", skip_all)
|
||||
instrument(level = "trace", name = "<DynChild />", skip_all)
|
||||
)]
|
||||
#[inline]
|
||||
fn into_view(self) -> View {
|
||||
|
|
|
@ -382,7 +382,7 @@ where
|
|||
{
|
||||
#[cfg_attr(
|
||||
any(debug_assertions, feature = "ssr"),
|
||||
instrument(level = "info", name = "<Each />", skip_all)
|
||||
instrument(level = "trace", name = "<Each />", skip_all)
|
||||
)]
|
||||
fn into_view(self) -> crate::View {
|
||||
let Self {
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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<T>", skip_all)
|
||||
instrument(level = "trace", name = "Option<T>", 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<I: IntoIterator<Item = T>, 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 = "<Element />", skip_all, fields(tag = %self.name)))]
|
||||
#[cfg_attr(debug_assertions, instrument(level = "trace", name = "<Element />", 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<const N: usize> 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() {
|
||||
|
|
|
@ -28,7 +28,7 @@ type PinnedFuture<T> = Pin<Box<dyn Future<Output = T>>>;
|
|||
/// ```
|
||||
#[cfg_attr(
|
||||
any(debug_assertions, feature = "ssr"),
|
||||
instrument(level = "info", skip_all,)
|
||||
instrument(level = "trace", skip_all,)
|
||||
)]
|
||||
pub fn render_to_string<F, N>(f: F) -> Oco<'static, str>
|
||||
where
|
||||
|
@ -59,7 +59,7 @@ where
|
|||
/// read under that `<Suspense/>` 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 `<Suspense/>` 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 `<Suspense/>` 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 `<Suspense/>` 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 `<Suspense/>` 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"))]
|
||||
|
|
|
@ -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 `<Suspense/>` 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 `<Suspense/>`
|
||||
/// 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<Item = String> {
|
||||
|
|
|
@ -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! {
|
||||
|
|
|
@ -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<T>(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<T>() -> Option<T>
|
||||
where
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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::<T>(),
|
||||
|
@ -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::<T>(),
|
||||
|
@ -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::<T>(),
|
||||
|
@ -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::<T>(),
|
||||
|
@ -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::<T>(),
|
||||
|
@ -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<U>(&self, f: impl FnOnce(&T) -> U) -> Option<U> {
|
||||
|
|
|
@ -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<H>(
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -54,7 +54,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<E, F, P>(
|
||||
|
@ -108,7 +108,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<P, E, F, C>(
|
||||
|
@ -173,7 +173,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<E, F, P, S>(
|
||||
|
@ -227,7 +227,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(
|
||||
|
@ -285,7 +285,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,
|
||||
|
|
|
@ -68,7 +68,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(
|
||||
|
@ -666,7 +666,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,
|
||||
|
|
Loading…
Reference in a new issue