summaryrefslogtreecommitdiff
path: root/src/graphql
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphql')
-rw-r--r--src/graphql/types/alert.rs6
-rw-r--r--src/graphql/types/jwt.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/graphql/types/alert.rs b/src/graphql/types/alert.rs
index 2ee0087..69e8f31 100644
--- a/src/graphql/types/alert.rs
+++ b/src/graphql/types/alert.rs
@@ -338,7 +338,7 @@ pub mod mutations {
)
.await
{
- eprintln!(
+ tracing::error!(
"Error for `{}`: {}",
format!("alert-{}-text-1.mp3", alert.id),
e
@@ -351,7 +351,7 @@ pub mod mutations {
)
.await
{
- eprintln!(
+ tracing::error!(
"Error for `{}`: {}",
format!("alert-{}-text-2.mp3", alert.id),
e
@@ -363,7 +363,7 @@ pub mod mutations {
)
.await
{
- eprintln!(
+ tracing::error!(
"Error for `{}`: {}",
format!("alert-{}-text-3.mp3", alert.id),
e
diff --git a/src/graphql/types/jwt.rs b/src/graphql/types/jwt.rs
index 5656dc5..b2a09c3 100644
--- a/src/graphql/types/jwt.rs
+++ b/src/graphql/types/jwt.rs
@@ -110,7 +110,7 @@ where
AppError::InvalidToken
}
_ => {
- eprintln!("{err:?}");
+ tracing::error!("{err:?}");
AppError::Unauthorized
}
})?;