corrected bug which would incorrectly assume a non null log was problematic and exited the program