Reviewing code that reads log file