refactor: log request
This commit is contained in:
parent
17af5a649b
commit
0c54c29c4f
3 changed files with 3 additions and 4 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -273,7 +273,7 @@ checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
|
|||
|
||||
[[package]]
|
||||
name = "complete-rss"
|
||||
version = "0.1.0"
|
||||
version = "1.0.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"itertools",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "complete-rss"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue