diff --git a/rnex-core/src/nex/auth_handler.rs b/rnex-core/src/nex/auth_handler.rs index 97b1008..a5ffe2b 100644 --- a/rnex-core/src/nex/auth_handler.rs +++ b/rnex-core/src/nex/auth_handler.rs @@ -129,7 +129,7 @@ impl AuthHandler { }; let Ok(passwd) = client.get_nex_password(pid).await else { - warn!("unable to get nex password"); + warn!("unable to get nex password for pid: {}:", pid); return Err(ErrorCode::Core_Exception); }; diff --git a/rnex-core/src/rmc/structures/any.rs b/rnex-core/src/rmc/structures/any.rs index 035d425..8f4b569 100644 --- a/rnex-core/src/rmc/structures/any.rs +++ b/rnex-core/src/rmc/structures/any.rs @@ -1,4 +1,4 @@ -use log::warn; +use log::{info, warn}; use rnex_core::rmc::structures::{Result, RmcSerialize}; use std::io::{Cursor, Read, Write}; use v_byte_helpers::{IS_BIG_ENDIAN, ReadExtensions}; @@ -28,10 +28,12 @@ impl RmcSerialize for Any { let mut cursor = Cursor::new(&buf); let len2: u32 = cursor.read_struct(IS_BIG_ENDIAN)?; - if len2 as usize + 1 != size { + if len2 as usize + 3 != size { warn!("mismatched sizes on any: {} vs {}", size, len2 + 1); } + info!("any data: {}", hex::encode(&buf)); + Ok(Any { name, data: (&buf[4..]).to_owned(),