Log each query as it's interpreted when calling codeql database analyze

This commit is contained in:
Henry Mercer 2021-05-05 18:09:10 +01:00
parent 925cef7601
commit 2c0a85753e
3 changed files with 7 additions and 1 deletions

3
lib/codeql.js generated
View file

@ -439,6 +439,9 @@ function getCodeQLForCmd(cmd) {
"--sarif-multicause-markdown",
`--output=${sarifFile}`,
addSnippetsFlag,
// Enable progress verbosity so we log each query as it's interpreted. This aids debugging
// when interpretation takes a while for one of the queries being analyzed.
"-v",
...getExtraOptionsFromEnv(["database", "analyze"]),
];
if (extraSearchPath !== undefined) {