check what log is when running command