fix While and add inspect log files via command as prep for doing CLI tests