disable output /api/version log

This commit is contained in:
2024-09-20 10:26:59 +00:00
committed by GitHub
parent 10bb32f145
commit 0210fb0902

View File

@@ -35,7 +35,9 @@ impl Service<Request<Body>> for PixivDownloaderSvc {
}
fn call(&mut self, req: Request<Body>) -> Self::Future {
log::info!(target: "server", "{} {}", req.method(), req.uri());
if req.method() != Method::GET || req.uri().path() != "/api/version" {
log::info!(target: "server", "{} {}", req.method(), req.uri());
}
match self.routes.match_route(&req, &self.context) {
Some(route) => Box::pin(async move {
match route.response(req).await {