surrealcs_kernel/logging/messages/actors_client/
router.rsuse crate::logging::messages::connections::ping::PingJourney;
use crate::logging::messages::transactions::base::TransactionJourney;
use crate::messages::client::message::TransactionMessage;
use crate::messages::server::interface::ServerMessage;
const TARGET: &str = "surrealcs::kernel::client::router";
pub fn log_client_router_message(message: &TransactionMessage) {
if let TransactionMessage::TransactionOperation(unwrapped_message) = message {
if let ServerMessage::Ping(_) = unwrapped_message.message {
tracing::trace!(target: TARGET, connection_id = %unwrapped_message.connection_id,
"{}",
PingJourney::RecievedByClientRouter.as_str()
);
}
let tx_pointer = TransactionJourney::RecievedByClientRouter;
let log = tx_pointer.from_wrapped_server_message(unwrapped_message);
if let Some(log) = log {
tracing::trace!(target: TARGET, "{log}");
}
}
}