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;
|
||||
},
|
||||
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,
|
||||
Err(ImportError::FetchError(error)) => {
|
||||
// Ignore mention if fetcher fails
|
||||
log::warn!("{}", error);
|
||||
log::warn!(
|
||||
"failed to find mentioned profile {}: {}",
|
||||
actor_address.acct(),
|
||||
error,
|
||||
);
|
||||
continue;
|
||||
},
|
||||
Err(other_error) => {
|
||||
|
|
Loading…
Reference in a new issue