log errors.