macro_rules! dev_panic { ($msg:expr) => { ... }; }
Panic in debug or tests, log error/warn in release