diff --git a/src/groups/calls/commands.rs b/src/groups/calls/commands.rs index dda24d2..8d7e4c9 100644 --- a/src/groups/calls/commands.rs +++ b/src/groups/calls/commands.rs @@ -164,6 +164,7 @@ impl Command for SkipCommand { let call = Call::get_by_id(channel.call_id.unwrap(), &ctx.rt.state.db) .await + .inspect_err(|e| log::error!("Failed to get call: {e:?}")) .map_err(|_| CommandError::DatabaseQueryFailed)? .ok_or(CommandError::DatabaseInconsistentState)?; @@ -179,10 +180,16 @@ impl Command for SkipCommand { .create_message(Id::new(other_channel_id)) .content("☎️ The other party hung up the phone.") .await + .inspect_err(|e| { + log::error!("Failed to send message to other party: {e:?}"); + }) .map_err(|_| CommandError::MessageSendingFailed)?; let call = Call::start(&channel, &ctx.rt.state.db) .await + .inspect_err(|e| { + log::error!("Failed to start (skipped) call: {e:?}"); + }) .map_err(|_| CommandError::DatabaseQueryFailed)?; if let Some(call) = call {