Merge pull request #20252 from sigmaSd/patch-1

Use `console.warn`/`console.info` where appropriate
This commit is contained in:
Tim van der Meij 2025-09-16 19:41:54 +02:00 committed by GitHub
commit 05af4ff783
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -374,7 +374,7 @@ function getVerbosityLevel() {
function info(msg) { function info(msg) {
if (verbosity >= VerbosityLevel.INFOS) { if (verbosity >= VerbosityLevel.INFOS) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log(`Info: ${msg}`); console.info(`Info: ${msg}`);
} }
} }
@ -382,7 +382,7 @@ function info(msg) {
function warn(msg) { function warn(msg) {
if (verbosity >= VerbosityLevel.WARNINGS) { if (verbosity >= VerbosityLevel.WARNINGS) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log(`Warning: ${msg}`); console.warn(`Warning: ${msg}`);
} }
} }