Skip to content

Commit 05af4ff

Browse files
Merge pull request #20252 from sigmaSd/patch-1
Use `console.warn`/`console.info` where appropriate
2 parents 4eeabcb + b6165c0 commit 05af4ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/shared/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,15 +374,15 @@ function getVerbosityLevel() {
374374
function info(msg) {
375375
if (verbosity >= VerbosityLevel.INFOS) {
376376
// eslint-disable-next-line no-console
377-
console.log(`Info: ${msg}`);
377+
console.info(`Info: ${msg}`);
378378
}
379379
}
380380

381381
// Non-fatal warnings.
382382
function warn(msg) {
383383
if (verbosity >= VerbosityLevel.WARNINGS) {
384384
// eslint-disable-next-line no-console
385-
console.log(`Warning: ${msg}`);
385+
console.warn(`Warning: ${msg}`);
386386
}
387387
}
388388

0 commit comments

Comments
 (0)