Log errors that should be sent via mail.