macro_rules! optify {
( $e: expr ) => { ... };
( $e: expr, $msg: tt ) => { ... };
}Expand description
Turn the Result<T, E> into an Option<T>, logging the error with tracing::error and
returning None if the value matches on Result::Err().
Optionally pass a message as the second argument.