def METHOD_NAME(caplog):
    """
    Check simple negative use case for run_cmd, including logging,
    when secrets are specified.
    """
    caplog.set_level(logging.DEBUG)
    secrets = ["8bca8d2e-1cd6", "683c08d7-bc07"]
    cmd = "ls /tmp/this/file/683c08d7-bc07/isnotthere"
    with pytest.raises(CommandFailed) as excinfo:
        utils.run_cmd(cmd, secrets=secrets)
        assert "No such file or directory" in str(excinfo.value)
        # check that exception was sanitized
        for secret in secrets:
            assert secret not in str(excinfo.value)
    # check that logs were satinized as well
    for secret in secrets:
        assert secret not in caplog.text