[][src]Macro maidsafe_utilities::log_or_panic

macro_rules! log_or_panic {
    ($($arg:tt)*) => { ... };
}

This macro will panic with the given message if the "testing" feature is enabled and the calling thread is not already panicking, otherwise it will simply log an error message.

Example

#[macro_use]
extern crate log;
#[macro_use]
extern crate maidsafe_utilities;

fn main() {
    log_or_panic!("Bad value: {}", 1746);
}