Skip to content

Commit

Permalink
Add new log grouping for DB cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardopirovano committed Jun 9, 2021
1 parent 0ea20c5 commit 06df98a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/analyze.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/analyze.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/analyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,13 @@ export async function runCleanup(
cleanupLevel: string,
logger: Logger
): Promise<void> {
logger.info("Cleaning up databases...");
logger.startGroup("Cleaning up databases");
for (const language of config.languages) {
const codeql = getCodeQL(config.codeQLCmd);
const databasePath = util.getCodeQLDatabasePath(config, language);
await codeql.databaseCleanup(databasePath, cleanupLevel);
}
logger.endGroup();
}

async function injectLinesOfCode(
Expand Down

0 comments on commit 06df98a

Please sign in to comment.