3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-14 21:31:50 +00:00

Add timestamps to log messages

This commit is contained in:
Dragory 2019-01-13 23:29:44 +02:00
parent bf25342122
commit fec64103f6

View file

@ -126,7 +126,8 @@ connect().then(async conn => {
logFn: (level, msg) => {
if (level === "debug") return;
console.log(`[${level.toUpperCase()}] ${msg}`);
const ts = moment().format("YYYY-MM-DD HH:mm:ss");
console.log(`[${ts}] [${level.toUpperCase()}] ${msg}`);
}
}
});