log_error

Function log_error 

Source
pub fn log_error(error: &Error)
Expand description

Logs anyhow::Error’s its error chain using the ERROR log level.

This follows the existing convention in the codebase that joins errors using em dashes. For example, an error “Invalid transaction” with a cause “Proof failed” would be logged as “Invalid transaction — Proof failed”.