Logreplay quietly ignores the last line of input file if there is no trailing EOL (\n).
While it is considered a good habit to put \n at the end of the last line in each text file, the module should read the file correctly even if this convention is not followed.
I think a simple change of the test on line 327 should be enough.