From 3dfb432b0fe77a95e18dc774d7bacf391a9ef765 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 31 May 2024 19:08:16 +0200 Subject: [PATCH] fix: oops apparently valid status codes end at 999 --- upub/routes/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upub/routes/src/lib.rs b/upub/routes/src/lib.rs index 333bf833..f4d24dc2 100644 --- a/upub/routes/src/lib.rs +++ b/upub/routes/src/lib.rs @@ -29,7 +29,7 @@ pub async fn serve(ctx: upub::Context, bind: String) -> upub::Result<()> { .layer( // TODO 4xx errors aren't really failures but since upub is in development it's useful to log // these too, in case something's broken - TraceLayer::new(SharedClassifier::new(StatusInRangeAsFailures::new(300..=u16::MAX))) + TraceLayer::new(SharedClassifier::new(StatusInRangeAsFailures::new(300..=999))) .make_span_with(|req: &axum::http::Request<_>| { tracing::span!( tracing::Level::INFO,