Skip to content

Commit a80b211

Browse files
committed
Align log message types and prefix
1 parent aaec5f4 commit a80b211

6 files changed

Lines changed: 9 additions & 7 deletions

File tree

packages/core/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function stopFuzzing(
268268
if (expectedErrors.length) {
269269
const name = errorName(err);
270270
if (expectedErrors.includes(name)) {
271-
console.error(`INFO: Received expected error "${name}".`);
271+
console.log(`INFO: Received expected error "${name}".`);
272272
stopFuzzing(ERROR_EXPECTED_CODE);
273273
} else {
274274
printFinding(err);

packages/core/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function buildFuzzerOption(options: Options) {
4646
function logInfoAboutFuzzerOptions(fuzzerOptions: string[]) {
4747
fuzzerOptions.slice(1).forEach((element) => {
4848
if (element.length > 0 && element[0] != "-") {
49-
console.error("INFO: using inputs from:", element);
49+
console.log("INFO: using inputs from:", element);
5050
}
5151
});
5252
}

packages/fuzzer/coverage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class CoverageTracker {
4545
if (newNumCounters > this.currentNumCounters) {
4646
addon.registerNewCounters(this.currentNumCounters, newNumCounters);
4747
this.currentNumCounters = newNumCounters;
48-
console.error(
48+
console.log(
4949
`INFO: New number of coverage counters ${this.currentNumCounters}`,
5050
);
5151
}

packages/instrumentor/edgeIdStrategy.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ export class FileSyncIdStrategy extends IncrementingEdgeIdStrategy {
156156
break;
157157
default:
158158
this.releaseLockOnSyncFile();
159-
console.error(`Multiple entries for ${filename} in ID sync file`);
159+
console.error(
160+
`ERROR: Multiple entries for ${filename} in ID sync file`,
161+
);
160162
process.exit(FileSyncIdStrategy.fatalExitCode);
161163
}
162164
break;
@@ -197,7 +199,7 @@ export class FileSyncIdStrategy extends IncrementingEdgeIdStrategy {
197199
} else {
198200
if (this.releaseLockOnSyncFile === undefined) {
199201
console.error(
200-
`Lock on ID sync file is not acquired by the first processing instrumenting: ${filename}`,
202+
`ERROR: Lock on ID sync file is not acquired by the first processing instrumenting: ${filename}`,
201203
);
202204
process.exit(FileSyncIdStrategy.fatalExitCode);
203205
}

packages/jest-runner/fuzz.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ const doneCallbackPromise = (
188188
// there could be quite some time until this one, there is not much we
189189
// can do besides printing an error message.
190190
console.error(
191-
"Expected done to be called once, but it was called multiple times.",
191+
"ERROR: Expected done to be called once, but it was called multiple times.",
192192
);
193193
}
194194
doneCalled = true;

packages/jest-runner/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ export class JazzerWorker {
314314
// there could be quite some time until this one, there is not much we
315315
// can do besides printing an error message.
316316
console.error(
317-
`Expected done to be called once, but it was called multiple times in "${hook.type}" of "${block.name}".`,
317+
`ERROR: Expected done to be called once, but it was called multiple times in "${hook.type}" of "${block.name}".`,
318318
);
319319
}
320320
doneCalled = true;

0 commit comments

Comments
 (0)