diff --git a/src/lib.rs b/src/lib.rs index e15bb2b..3d1c42e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -67,10 +67,10 @@ where { trace!( "serve_function:: req.uri() == {}, req.method() == {}", - req.uri(), + req.uri().path(), req.method() ); - if req.uri() != "/metrics" { + if req.uri().path() != "/metrics" { Ok(Response::builder() .status(StatusCode::NOT_FOUND) .body(hyper::Body::empty())