Simplify logfile parsing and drop unreachable codepath.
Merge @laurent22/master.
Merge pull request #23 from robru/simplify-logfiles

Simplify logfile parsing and drop unreachable codepath.