log error states