improve debug logging
This commit is contained in:
parent
98fade50f4
commit
4222ce97dc
|
@ -88,7 +88,7 @@ impl Feed {
|
||||||
.await?
|
.await?
|
||||||
.json()
|
.json()
|
||||||
.await?;
|
.await?;
|
||||||
log::debug!("{} {} posts", url, posts.len());
|
log::trace!("{} {} posts", url, posts.len());
|
||||||
Ok(Feed { posts })
|
Ok(Feed { posts })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ impl Scheduler {
|
||||||
.unwrap_or(Err(Duration::from_secs(1)))
|
.unwrap_or(Err(Duration::from_secs(1)))
|
||||||
.map(|host| {
|
.map(|host| {
|
||||||
if let Some(last_fetch) = self.instances.get(&host).and_then(|i| i.last_fetch) {
|
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 {
|
} else {
|
||||||
log::debug!("Fetch {} - NEW", host);
|
log::debug!("Fetch {} - NEW", host);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user