Change more logging messages.

This commit is contained in:
Syfaro 2021-04-21 22:54:08 -04:00
parent 36ea876043
commit 6a0a7f2e2e

View File

@ -117,13 +117,13 @@ async fn main() -> anyhow::Result<()> {
let elapsed = now.elapsed().as_millis() as u64;
if post_ids.contains(&lid) {
tracing::warn!(lid, "Page contained latest ID, sleeping");
tracing::info!(lid, "Page contained latest ID, sleeping");
tokio::time::sleep(std::time::Duration::from_secs(60 * 5)).await;
latest_id = None;
} else if elapsed < 1000 {
let delay = 1000 - elapsed;
tracing::warn!(delay, "Delaying before next request");
tracing::info!(delay, "Delaying before next request");
tokio::time::sleep(std::time::Duration::from_millis(delay)).await;
}
}