log error in reading