diff --git a/src/errors.rs b/src/errors.rs index b173ab93..1d0862f7 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -83,7 +83,7 @@ impl axum::response::IntoResponse for UpubError { fn into_response(self) -> axum::response::Response { // TODO it's kind of jank to hide this print down here, i should probably learn how spans work // in tracing and use the library's features but ehhhh - tracing::error!("{self:?}"); + tracing::debug!("emitting error response: {self:?}"); match self { UpubError::Redirect(to) => Redirect::to(&to).into_response(), UpubError::Status(status) => status.into_response(), diff --git a/src/main.rs b/src/main.rs index 9cef5344..3d4e2ae2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -98,7 +98,7 @@ async fn main() { .acquire_timeout(std::time::Duration::from_secs(config.datasource.acquire_timeout_seconds)) .connect_timeout(std::time::Duration::from_secs(config.datasource.connect_timeout_seconds)) .sqlx_slow_statements_logging_settings( - if config.datasource.slow_query_warn_enable { tracing::log::LevelFilter::Warn } else { tracing::log::LevelFilter::Off }, + if config.datasource.slow_query_warn_enable { tracing::log::LevelFilter::Warn } else { tracing::log::LevelFilter::Debug }, std::time::Duration::from_secs(config.datasource.slow_query_warn_seconds) ); diff --git a/src/server/side_effects.rs b/src/server/side_effects.rs index 57e0d260..40092f86 100644 --- a/src/server/side_effects.rs +++ b/src/server/side_effects.rs @@ -75,4 +75,5 @@ impl SideEffects for super::Context { Ok(()) } + }