chore: tweak tracing levels (#1901)

This commit is contained in:
Greg Johnston 2023-10-17 12:44:37 -04:00 committed by GitHub
parent 11f6a5d341
commit 4a4e16c206
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View file

@ -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

View file

@ -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> {