Small fixes to logging

This commit is contained in:
Neshura 2024-05-06 22:54:01 +02:00
parent 3928367692
commit 17e161bc27
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 3 additions and 3 deletions

View file

@ -124,7 +124,7 @@ async fn idle(start: &DateTime<Utc>, config: &Config) {
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);
if let Some(status_url) = config.status_post_url.clone() {

View file

@ -284,7 +284,7 @@ impl Fetcher for JFetcherOptions {
Ok(data) => match data.text().await {
Ok(data) => data,
Err(e) => {
let err_msg = format!("{e}");
let err_msg = format!("While checking feed: {e}");
error!(err_msg);
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) => data,
Err(e) => {
let err_msg = format!("{e}");
let err_msg = format!("While getting latest PrePub: {e}");
error!(err_msg);
return Err(());
}