Merge pull request #20252 from sigmaSd/patch-1
Use `console.warn`/`console.info` where appropriate
This commit is contained in:
commit
05af4ff783
@ -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}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user