Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Commit

Permalink
CHORE: lower the tracing level for a successful request
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenein committed Jul 28, 2022
1 parent aeab400 commit 531cb50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rusty-tractive-telegram-bot/src/middleware.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use poem::error::{MethodNotAllowedError, NotFoundError, ParsePathError, ParseQueryError};
use poem::http::StatusCode;
use poem::{Endpoint, IntoResponse, Middleware, Request, Response, Result};
use tracing::{error, info, instrument};

use crate::prelude::*;

pub struct TracingMiddleware;

Expand Down Expand Up @@ -41,7 +42,7 @@ impl<E: Endpoint<Output = Response>> Endpoint for TracingMiddlewareImpl<E> {
Ok(StatusCode::INTERNAL_SERVER_ERROR.into_response())
}
result => {
info!("ok");
debug!("ok");
result
}
}
Expand Down

0 comments on commit 531cb50

Please sign in to comment.