Bump verbosity of database finalize in debug mode

This commit is contained in:
Henry Mercer 2024-03-13 18:22:37 +00:00
parent 649f3e87e1
commit 070b05147a
9 changed files with 39 additions and 15 deletions

5
lib/codeql.js generated
View file

@ -383,13 +383,16 @@ async function getCodeQLForCmd(cmd, checkVersion) {
util.getCodeQLDatabasePath(config, language),
]);
},
async finalizeDatabase(databasePath, threadsFlag, memoryFlag) {
async finalizeDatabase(databasePath, threadsFlag, memoryFlag, enableDebugLogging) {
const args = [
"database",
"finalize",
"--finalize-dataset",
threadsFlag,
memoryFlag,
...(enableDebugLogging
? [`--verbosity=${EXTRACTION_DEBUG_MODE_VERBOSITY}`]
: []),
...getExtraOptionsFromEnv(["database", "finalize"]),
databasePath,
];