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

2
Cargo.lock generated
View file

@ -273,7 +273,7 @@ checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
[[package]]
name = "complete-rss"
version = "0.1.0"
version = "1.0.1"
dependencies = [
"anyhow",
"itertools",

View file

@ -1,6 +1,6 @@
[package]
name = "complete-rss"
version = "1.0.0"
version = "1.0.1"
edition = "2024"
[dependencies]

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;
}