Merge pull request #476 from github/henrymercer/log-queries-during-interpretation

Log each query as it's interpreted when calling codeql database analyze
This commit is contained in:
Henry Mercer 2021-05-05 18:30:32 +01:00 committed by GitHub
commit 46d0d277ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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) {

File diff suppressed because one or more lines are too long

View file

@ -684,6 +684,9 @@ function getCodeQLForCmd(cmd: string): CodeQL {
"--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) {