logging errors to alert