Skip to main content

trace_error

Macro trace_error 

Source
macro_rules! trace_error {
    ($operation:expr, $error:expr) => { ... };
    ($operation:expr, $error:expr, $($field:tt)*) => { ... };
}
Expand description

Log a failed operation with error details.

§Example

use mabi_core::trace_error;

match result {
    Ok(_) => {},
    Err(e) => trace_error!("read", e),
}