Skip to content

Commit

Permalink
feat: more logging info (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakowskiii authored Jun 26, 2023
1 parent 1018d3e commit 02799fd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,12 @@ pub async fn bootstrap(config: Config) -> RpcResult<()> {

let global_middleware = ServiceBuilder::new().layer(
TraceLayer::new_for_http()
.make_span_with(DefaultMakeSpan::new().include_headers(true))
.on_request(DefaultOnRequest::new().level(Level::DEBUG))
.make_span_with(
DefaultMakeSpan::new()
.level(Level::INFO)
.include_headers(true),
)
.on_request(DefaultOnRequest::new().level(Level::INFO))
.on_response(
DefaultOnResponse::new()
.level(Level::INFO)
Expand Down

0 comments on commit 02799fd

Please sign in to comment.