improve debug logging

This commit is contained in:
Astro 2022-11-03 20:59:36 +01:00
parent 98fade50f4
commit 4222ce97dc
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ impl Feed {
.await?
.json()
.await?;
log::debug!("{} {} posts", url, posts.len());
log::trace!("{} {} posts", url, posts.len());
Ok(Feed { posts })
}
}

View File

@ -78,7 +78,7 @@ impl Scheduler {
.unwrap_or(Err(Duration::from_secs(1)))
.map(|host| {
if let Some(last_fetch) = self.instances.get(&host).and_then(|i| i.last_fetch) {
log::debug!("Fetch {} - last before {:?}", host, now - last_fetch);
log::debug!("Fetch {} - last before {:.0?}", host, now - last_fetch);
} else {
log::debug!("Fetch {} - NEW", host);
}