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

4
lib/codeql.js generated
View File

@@ -241,7 +241,9 @@ async function getCodeQLForCmd(cmd, checkVersion) {
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);
}