From cbd175229e23eef360da67fa47f83a6617cc8342 Mon Sep 17 00:00:00 2001 From: Maple Nebel Date: Tue, 28 Apr 2026 11:31:43 +0200 Subject: [PATCH] add logging if an error occurrs in method --- rnex-core/src/rmc/response.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/rnex-core/src/rmc/response.rs b/rnex-core/src/rmc/response.rs index b042877..d401892 100644 --- a/rnex-core/src/rmc/response.rs +++ b/rnex-core/src/rmc/response.rs @@ -6,7 +6,7 @@ use crate::rmc::response::ErrorCode::Core_Exception; use crate::rmc::structures::qresult::ERROR_MASK; use crate::util::SendingBufferConnection; use bytemuck::bytes_of; -use log::error; +use log::{error, warn}; use std::io; use std::io::{Read, Seek, Write}; use std::mem::transmute; @@ -157,10 +157,13 @@ pub async fn send_result( method_id, data: v, }, - Err(e) => RMCResponseResult::Error { - call_id, - error_code: e.into(), - }, + Err(e) => { + warn!("error occurred during call: {:?}", e); + RMCResponseResult::Error { + call_id, + error_code: e.into(), + } + } }; let response = RMCResponse {