Fixed log size limit check.