Changed logMsg check for command line