Log activity processing errors
This commit is contained in:
parent
cc9d1ff0d3
commit
6087e78abb
1 changed files with 5 additions and 1 deletions
|
@ -103,7 +103,11 @@ async fn inbox(
|
|||
Ok(signer_id) => log::info!("activity signed by {}", signer_id),
|
||||
Err(err) => log::warn!("invalid signature: {}", err),
|
||||
};
|
||||
receive_activity(&config, &db_pool, activity.into_inner()).await?;
|
||||
receive_activity(&config, &db_pool, activity.into_inner()).await
|
||||
.map_err(|err| {
|
||||
log::info!("failed to process activity: {}", err);
|
||||
err
|
||||
})?;
|
||||
Ok(HttpResponse::Ok().finish())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue