pub fn ensure_error<E: AsRef<dyn Error>>(error: E)
Expand description
Logs an error to the configured logger or stderr
if not yet configured.
Prefer to use relay_log::error
over this function whenever possible. This
function is intended to be used during startup, where initializing the logger may fail or when
errors need to be logged before the logger has been initialized.