actually add correct logging

This commit is contained in:
red binder 2026-05-30 18:33:45 +02:00
commit b355d8807f
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,5 @@
{ {
"rust-analyzer.cargo.features": [ "rust-analyzer.cargo.features": [
"friends" "v3-8-15", "splatoon", "prudpv1"
] ]
} }

View file

@ -37,7 +37,7 @@ use std::env;
use std::str::FromStr; use std::str::FromStr;
use cfg_if::cfg_if; use cfg_if::cfg_if;
use log::{error, info}; use log::{error, info, warn};
use macros::rmc_struct; use macros::rmc_struct;
use rnex_core::prudp::socket_addr::PRUDPSockAddr; use rnex_core::prudp::socket_addr::PRUDPSockAddr;
use rnex_core::rmc::protocols::notifications::{NotificationEvent, RemoteNotification}; use rnex_core::rmc::protocols::notifications::{NotificationEvent, RemoteNotification};
@ -134,6 +134,8 @@ impl Secure for User {
async fn replace_url(&self, target_url: StationUrl, dest: StationUrl) -> Result<(), ErrorCode> { async fn replace_url(&self, target_url: StationUrl, dest: StationUrl) -> Result<(), ErrorCode> {
let mut lock = self.station_url.write().await; let mut lock = self.station_url.write().await;
info!("target URL: {:?}", target_url);
info!("dest URL: {:?}", dest);
let Some(target_addr) = target_url.options.iter().find(|v| matches!(v, Address(_))) else { let Some(target_addr) = target_url.options.iter().find(|v| matches!(v, Address(_))) else {
return Err(ErrorCode::Core_InvalidArgument); return Err(ErrorCode::Core_InvalidArgument);