Merge pull request #183 from bartnijssen/feature/logfix

Initialize log before first use in cmd_proc()