Improve logging

This commit is contained in:
Henry Mercer 2024-10-10 18:54:18 +01:00
parent df0590b2ee
commit 90c42c41ec
9 changed files with 26 additions and 9 deletions

View file

@ -544,7 +544,9 @@ export async function getCodeQLForCmd(
async getVersion() {
let result = util.getCachedCodeQlVersion();
if (result === undefined) {
const output = await runCli(cmd, ["version", "--format=json"]);
const output = await runCli(cmd, ["version", "--format=json"], {
noStreamStdout: true,
});
try {
result = JSON.parse(output) as VersionInfo;
} catch {