Log command's exit code