Improve logging of mention parsing errors
This commit is contained in:
parent
145622e805
commit
803e73b4da
1 changed files with 10 additions and 2 deletions
|
@ -185,7 +185,11 @@ pub async fn handle_note(
|
||||||
continue;
|
continue;
|
||||||
},
|
},
|
||||||
Err(error) => {
|
Err(error) => {
|
||||||
log::warn!("failed to find mentioned profile {}: {}", href, error);
|
log::warn!(
|
||||||
|
"failed to find mentioned profile by ID {}: {}",
|
||||||
|
href,
|
||||||
|
error,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -216,7 +220,11 @@ pub async fn handle_note(
|
||||||
Ok(profile) => profile,
|
Ok(profile) => profile,
|
||||||
Err(ImportError::FetchError(error)) => {
|
Err(ImportError::FetchError(error)) => {
|
||||||
// Ignore mention if fetcher fails
|
// Ignore mention if fetcher fails
|
||||||
log::warn!("{}", error);
|
log::warn!(
|
||||||
|
"failed to find mentioned profile {}: {}",
|
||||||
|
actor_address.acct(),
|
||||||
|
error,
|
||||||
|
);
|
||||||
continue;
|
continue;
|
||||||
},
|
},
|
||||||
Err(other_error) => {
|
Err(other_error) => {
|
||||||
|
|
Loading…
Reference in a new issue