Skip to main content

assert_with_logs

Macro assert_with_logs 

Source
macro_rules! assert_with_logs {
    ($logger:expr, $cond:expr) => { ... };
    ($logger:expr, $cond:expr, $($arg:tt)+) => { ... };
}
Expand description

Assertion helper that includes log context on failure.

Use this instead of assert! to automatically include recent logs in the failure message.