hunter/worker: output more stream stats
This commit is contained in:
parent
fea8e66d1c
commit
ec368e4557
|
@ -103,7 +103,7 @@ pub async fn run(
|
||||||
let post_count = stream.await;
|
let post_count = stream.await;
|
||||||
let end_time = Instant::now();
|
let end_time = Instant::now();
|
||||||
metrics::decrement_gauge!("hunter_requests", 1.0, "type" => "stream");
|
metrics::decrement_gauge!("hunter_requests", 1.0, "type" => "stream");
|
||||||
tracing::warn!("Ended stream for {}", host);
|
tracing::warn!("Ended stream for {}. {} posts in {:?}", host, post_count, end_time - start_time);
|
||||||
|
|
||||||
if post_count > 0 {
|
if post_count > 0 {
|
||||||
if let Some(ref mut new_post_ratio) = new_post_ratio {
|
if let Some(ref mut new_post_ratio) = new_post_ratio {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user