Logging SendGrid errors