Skip to content

Commit

Permalink
chore: prefix warning with [WARN]
Browse files Browse the repository at this point in the history
  • Loading branch information
seia-soto committed Dec 3, 2024
1 parent f494db9 commit c20468f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/adblocker/tools/generate_compression_codebooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ async function tryCodebookGeneration(kind: Kind) {
const pattern = new RegExp(`if \\(kind === '${kind}'\\) {\n +maxNgram = (\\d+);`);
const match = pattern.exec(await getScriptContent());
if (IS_CI === false || match === null) {
console.log(
`Skipping automatic search for maximum "maxNgram" value as looking up pre-defined "maxNgram" value for the kind "${kind}" failed or the environment variable "CI" was not set!`,
console.warn(
`[WARN] Skipping automatic search for maximum "maxNgram" value as looking up pre-defined "maxNgram" value for the kind "${kind}" failed or the environment variable "CI" was not set!`,
);

return runCodebookGeneration(kind);
Expand Down

0 comments on commit c20468f

Please sign in to comment.