mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
chore: tweak tracing levels (#1901)
This commit is contained in:
parent
11f6a5d341
commit
4a4e16c206
2 changed files with 9 additions and 9 deletions
|
@ -45,7 +45,7 @@ use std::any::{Any, TypeId};
|
|||
/// ```
|
||||
#[cfg_attr(
|
||||
any(debug_assertions, feature = "ssr"),
|
||||
instrument(level = "info", skip_all,)
|
||||
instrument(level = "debug", skip_all,)
|
||||
)]
|
||||
#[track_caller]
|
||||
pub fn provide_context<T>(value: T)
|
||||
|
@ -119,7 +119,7 @@ where
|
|||
/// ```
|
||||
#[cfg_attr(
|
||||
any(debug_assertions, feature = "ssr"),
|
||||
instrument(level = "info", skip_all,)
|
||||
instrument(level = "debug", skip_all,)
|
||||
)]
|
||||
pub fn use_context<T>() -> Option<T>
|
||||
where
|
||||
|
|
|
@ -69,7 +69,7 @@ use std::{
|
|||
#[cfg_attr(
|
||||
any(debug_assertions, feature="ssr"),
|
||||
instrument(
|
||||
level = "info",
|
||||
level = "debug",
|
||||
skip_all,
|
||||
fields(
|
||||
ty = %std::any::type_name::<T>(),
|
||||
|
@ -103,7 +103,7 @@ where
|
|||
#[cfg_attr(
|
||||
any(debug_assertions, feature="ssr"),
|
||||
instrument(
|
||||
level = "info",
|
||||
level = "debug",
|
||||
skip_all,
|
||||
fields(
|
||||
ty = %std::any::type_name::<T>(),
|
||||
|
@ -152,7 +152,7 @@ where
|
|||
#[cfg_attr(
|
||||
any(debug_assertions, feature="ssr"),
|
||||
instrument(
|
||||
level = "info",
|
||||
level = "debug",
|
||||
skip_all,
|
||||
fields(
|
||||
ty = %std::any::type_name::<T>(),
|
||||
|
@ -278,7 +278,7 @@ where
|
|||
#[cfg_attr(
|
||||
any(debug_assertions, feature="ssr"),
|
||||
instrument(
|
||||
level = "info",
|
||||
level = "debug",
|
||||
skip_all,
|
||||
fields(
|
||||
ty = %std::any::type_name::<T>(),
|
||||
|
@ -311,7 +311,7 @@ where
|
|||
#[cfg_attr(
|
||||
any(debug_assertions, feature="ssr"),
|
||||
instrument(
|
||||
level = "info",
|
||||
level = "debug",
|
||||
skip_all,
|
||||
fields(
|
||||
ty = %std::any::type_name::<T>(),
|
||||
|
@ -484,7 +484,7 @@ where
|
|||
/// (`value.read()` is equivalent to `value.with(T::clone)`.)
|
||||
#[cfg_attr(
|
||||
any(debug_assertions, feature = "ssr"),
|
||||
instrument(level = "info", skip_all,)
|
||||
instrument(level = "debug", skip_all,)
|
||||
)]
|
||||
#[track_caller]
|
||||
#[deprecated = "You can now use .get() on resources."]
|
||||
|
@ -504,7 +504,7 @@ where
|
|||
/// [`Resource::read`].
|
||||
#[cfg_attr(
|
||||
any(debug_assertions, feature = "ssr"),
|
||||
instrument(level = "info", skip_all,)
|
||||
instrument(level = "debug", skip_all,)
|
||||
)]
|
||||
#[track_caller]
|
||||
pub fn map<U>(&self, f: impl FnOnce(&T) -> U) -> Option<U> {
|
||||
|
|
Loading…
Reference in a new issue