log: log requests
All checks were successful
ci / docker (push) Successful in 7m7s

Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
Frank Villaro-Dixon 2024-05-02 12:06:43 +02:00
parent eef6d6195f
commit 54e4f17b69

View file

@ -105,8 +105,8 @@ async fn main() {
.with_state(cache)
.layer(
TraceLayer::new_for_http()
.make_span_with(trace::DefaultMakeSpan::new().level(Level::DEBUG))
.on_response(trace::DefaultOnResponse::new().level(Level::DEBUG)),
.make_span_with(trace::DefaultMakeSpan::new().level(Level::INFO))
.on_response(trace::DefaultOnResponse::new().level(Level::INFO)),
)
.layer(Extension(QsQueryConfig::new(5, false).error_handler(
|err| {