improve debug logging
This commit is contained in:
parent
98fade50f4
commit
4222ce97dc
|
@ -88,7 +88,7 @@ impl Feed {
|
|||
.await?
|
||||
.json()
|
||||
.await?;
|
||||
log::debug!("{} {} posts", url, posts.len());
|
||||
log::trace!("{} {} posts", url, posts.len());
|
||||
Ok(Feed { posts })
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue