Fix notice "undefine index of logfile".
Merge pull request #54 from Kamik/master

Fix notice "undefine index of logfile".