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