mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-02 01:17:28 -08:00
console.info for level "info"
This commit is contained in:
parent
e5913c5abc
commit
df36a4bb3c
|
@ -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);
|
||||
|
|
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue