log length if the data type is wrong