mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-30 20:46:33 -05:00
Print error if one occurs during process invoked by API call
This commit is contained in:
parent
b51b0e02d6
commit
ca149d2faa
1 changed files with 6 additions and 1 deletions
|
|
@ -803,7 +803,12 @@ impl Request {
|
|||
pub async fn call(self, context: Arc<Context>) -> Result<serde_json::Value> {
|
||||
let method_span = self.cmd.get_tracing_span(self.log_reference.clone());
|
||||
|
||||
self.handle_cmd(context).instrument(method_span).await
|
||||
self.handle_cmd(context).instrument(method_span.clone()).await.map_err(|err| {
|
||||
method_span.in_scope(|| {
|
||||
tracing::debug!(%err, "API call resulted in an error");
|
||||
});
|
||||
err
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue