logging mailgun errors