console.info for level "info"

This commit is contained in:
Andreas Brett 2021-11-15 18:02:14 +01:00
parent e5913c5abc
commit df36a4bb3c
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ function log(module, msg, level) {
var now = new Date().toISOString();
var formattedMessage = (typeof msg === "string") ? now + " [" + module + "] " + level + ": " + msg : msg;
if (level === "INFO") {
console.log(formattedMessage);
console.info(formattedMessage);
}
else if (level === "WARN") {
console.warn(formattedMessage);

View File

@ -57,7 +57,7 @@ function log(module: string, msg: any, level:string) {
const formattedMessage = (typeof msg === "string") ? `${now} [${module}] ${level}: ${msg}` : msg;
if (level === "INFO") {
console.log(formattedMessage);
console.info(formattedMessage);
} else if (level === "WARN") {
console.warn(formattedMessage);
} else if (level === "ERROR") {