Add logging for email issue