Small fixes to logging
This commit is contained in:
parent
3928367692
commit
17e161bc27
2 changed files with 3 additions and 3 deletions
|
@ -124,7 +124,7 @@ async fn idle(start: &DateTime<Utc>, config: &Config) {
|
||||||
sleep_duration = Duration::seconds(60);
|
sleep_duration = Duration::seconds(60);
|
||||||
}
|
}
|
||||||
|
|
||||||
let info_msg = format!("Idling for {} seconds", sleep_duration);
|
let info_msg = format!("Idling for {} seconds", sleep_duration.to_string());
|
||||||
info!(info_msg);
|
info!(info_msg);
|
||||||
|
|
||||||
if let Some(status_url) = config.status_post_url.clone() {
|
if let Some(status_url) = config.status_post_url.clone() {
|
||||||
|
|
|
@ -284,7 +284,7 @@ impl Fetcher for JFetcherOptions {
|
||||||
Ok(data) => match data.text().await {
|
Ok(data) => match data.text().await {
|
||||||
Ok(data) => data,
|
Ok(data) => data,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
let err_msg = format!("{e}");
|
let err_msg = format!("While checking feed: {e}");
|
||||||
error!(err_msg);
|
error!(err_msg);
|
||||||
return Err(());
|
return Err(());
|
||||||
}
|
}
|
||||||
|
@ -410,7 +410,7 @@ async fn get_latest_prepub(volume_slug: &str) -> Result<Option<lemmy::PostInfoIn
|
||||||
Ok(data) => match data.text().await {
|
Ok(data) => match data.text().await {
|
||||||
Ok(data) => data,
|
Ok(data) => data,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
let err_msg = format!("{e}");
|
let err_msg = format!("While getting latest PrePub: {e}");
|
||||||
error!(err_msg);
|
error!(err_msg);
|
||||||
return Err(());
|
return Err(());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue