mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-06-06 05:49:01 +08:00
disable output /api/version log
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user