refactor: log request

This commit is contained in:
Moritz Böhme 2025-10-03 17:53:59 +02:00
parent 17af5a649b
commit 0c54c29c4f
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
3 changed files with 3 additions and 4 deletions

View file

@ -25,7 +25,6 @@ fn get_domain(item: &rss::Item) -> Option<String> {
.and_then(|parsed| parsed.domain().map(|domain| domain.to_string()))
}
#[instrument(skip_all)]
async fn complete_channel(mut channel: Channel, client: &Client) -> Result<Box<Channel>> {
let grouped: Vec<(Option<String>, Vec<rss::Item>)> = channel
.items()
@ -131,5 +130,5 @@ async fn main() {
})
.map(|reply| warp::reply::with_header(reply, "Content-Type", "application/rss+xml"));
let health = warp::path!("health").map(|| "Healthy");
warp::serve(rss.or(health)).run(([0, 0, 0, 0], 3030)).await;
warp::serve(rss.or(health).with(warp::trace::request())).run(([0, 0, 0, 0], 3030)).await;
}