[Add] More logging

This commit is contained in:
Alex Emmet 2026-02-21 11:15:15 +01:00
commit d4a1b6922b
4 changed files with 93 additions and 19 deletions

View file

@ -29,7 +29,7 @@ use crate::{
},
omega::omega_connection::OmegaConnection,
};
use crate::{get_private_key, get_public_key, log_in, log_out};
use crate::{get_private_key, get_public_key, log_cv_in, log_in, log_out};
pub struct ClientConnection {
pub sender: Arc<RwLock<WebSocketSender<Compat<tokio::net::TcpStream>>>>,
@ -131,12 +131,7 @@ impl ClientConnection {
self.handle_ping(cv).await;
return;
}
log_in!(
self.get_user_id().await,
PrintType::Client,
"{}",
&cv.to_json().to_string()
);
log_cv_in!(PrintType::Client, cv);
let identified = *self.identified.read().await;
let challenged = *self.challenged.read().await;

View file

@ -2,6 +2,7 @@ use crate::calls::call_group::CallGroup;
use crate::calls::call_manager;
use crate::get_private_key;
use crate::get_public_key;
use crate::log_cv_in;
use crate::log_err;
use crate::log_in;
use crate::log_out;
@ -154,12 +155,7 @@ impl IotaConnection {
return;
}
log_in!(
self.get_iota_id().await,
PrintType::Iota,
"{}",
cv.to_json().to_string()
);
log_cv_in!(PrintType::Iota, cv);
let identified = *self.identified.read().await;
let challenged = *self.challenged.read().await;