Interpret log length correctly
Merge branch 'fix-length-parsing' into pablobm