Skip to main content

default_log

Function default_log 

Source
pub fn default_log<T, E>(error: E) -> T
where T: Default, Error: From<E>,
Expand description

Logs an error and returns a default value.

The input is converted to Error before display-formatted logging. The result is independent of the error and comes from Default::default.