pub fn log_tx(
    logger: &Logger,
    tx: TxMetadata,
    msg_id: &str,
    status: MessageStatus,
    source: &str,
    destination: &str,
    msg_metadata: ProtocolMessages,
) {
    // let debug_ts = Utc::now().to_string();
    info!(
        logger,
        "Message sent";
        msg_metadata,
        // "debug_ts" => debug_ts,
        "thread" => tx.thread_id,
        "radio" => tx.radio_type,
        "out_queued_duration" => tx.out_queued_duration,
        "contention_duration" => tx.contention_duration,
        "tx_duration" => tx.tx_duration,
        "broadcast_duration" => tx.broadcast_duration,
        "destination" => destination,
        "source" => source,
        "status" => &status,
        "msg_id"=>msg_id,
    );
}
/// Logs outgoing packets in a standard format
Logs outgoing packets in a standard format
Logs outgoing packets in a standard format
pub fn log_tx(
    logger: &Logger,
    tx: TxMetadata,
    msg_id: &str,
    status: MessageStatus,
    source: &str,
    destination: &str,
    msg_metadata: ProtocolMessages,
) {
    // let debug_ts = Utc::now().to_string();
    info!(
        logger,
        "Message sent";
        msg_metadata,
        // "debug_ts" => debug_ts,
        "thread" => tx.thread_id,
        "radio" => tx.radio_type,
        "out_queued_duration" => tx.out_queued_duration,
        "contention_duration" => tx.contention_duration,
        "tx_duration" => tx.tx_duration,
        "broadcast_duration" => tx.broadcast_duration,
        "destination" => destination,
        "source" => source,
        "status" => &status,
        "msg_id"=>msg_id,
    );
}
pub fn log_tx ( logger : & Logger , tx : TxMetadata , msg_id : & str , status : MessageStatus , source : & str , destination : & str , msg_metadata : ProtocolMessages , ) { // let debug_ts = Utc::now().to_string(); info ! ( logger " " msg_metadata // "debug_ts" => debug_ts, " " tx thread_id " " tx radio_type " " tx out_queued_duration " " tx contention_duration " " tx tx_duration " " tx broadcast_duration " " destination " " source " " status " " msg_id ) ; }
Logs outgoing packets in a standard format
Logs outgoing packets in a standard format
logger
&Logger
tx
TxMetadata
msg_id
&str
status
MessageStatus
source
&str
destination
&str
msg_metadata
ProtocolMessages