Skip to content

Commit 38055a3

Browse files
committed
Drop logger from databaseInitCluster in interface
1 parent dc1b98a commit 38055a3

5 files changed

Lines changed: 4 additions & 16 deletions

File tree

lib/entry-points.js

Lines changed: 4 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/codeql.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,6 @@ const injectedConfigMacro = makeMacro({
580580
"",
581581
undefined,
582582
undefined,
583-
getRunnerLogger(true),
584583
);
585584

586585
const args = runnerConstructorStub.firstCall.args[1] as string[];
@@ -856,7 +855,6 @@ test.serial(
856855
"",
857856
undefined,
858857
"/path/to/qlconfig.yml",
859-
getRunnerLogger(true),
860858
);
861859

862860
const args = runnerConstructorStub.firstCall.args[1] as string[];
@@ -887,7 +885,6 @@ test.serial(
887885
"",
888886
undefined,
889887
undefined, // undefined qlconfigFile
890-
getRunnerLogger(true),
891888
);
892889

893890
const args = runnerConstructorStub.firstCall.args[1] as any[];
@@ -1066,7 +1063,6 @@ test.serial(
10661063
"sourceRoot",
10671064
undefined,
10681065
undefined,
1069-
getRunnerLogger(false),
10701066
);
10711067

10721068
t.true(runnerConstructorStub.calledOnce);

src/codeql.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ export interface CodeQL {
9191
sourceRoot: string,
9292
processName: string | undefined,
9393
qlconfigFile: string | undefined,
94-
logger: Logger,
9594
): Promise<void>;
9695
/**
9796
* Runs the autobuilder for the given language.

src/init-action.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,6 @@ async function run(
689689
sourceRoot,
690690
"Runner.Worker.exe",
691691
qlconfigFile,
692-
logger,
693692
);
694693

695694
// To check custom query packs for compatibility with overlay analysis, we
@@ -718,7 +717,6 @@ async function run(
718717
sourceRoot,
719718
"Runner.Worker.exe",
720719
qlconfigFile,
721-
logger,
722720
);
723721
}
724722

src/init.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export async function runDatabaseInitCluster(
8989
sourceRoot: string,
9090
processName: string | undefined,
9191
qlconfigFile: string | undefined,
92-
logger: Logger,
9392
): Promise<void> {
9493
fs.mkdirSync(config.dbLocation, { recursive: true });
9594
await configUtils.wrapEnvironment(
@@ -100,7 +99,6 @@ export async function runDatabaseInitCluster(
10099
sourceRoot,
101100
processName,
102101
qlconfigFile,
103-
logger,
104102
),
105103
);
106104
}

0 commit comments

Comments
 (0)