Add performance logging

This commit is contained in:
Dragory 2019-02-08 21:04:04 +02:00
parent e841f20ab0
commit e5032d8cd4
4 changed files with 24 additions and 5 deletions

View file

@ -144,6 +144,12 @@ connect().then(async conn => {
if (level === "debug") return;
const ts = moment().format("YYYY-MM-DD HH:mm:ss");
console.log(`[${ts}] [${level.toUpperCase()}] ${msg}`);
},
performanceDebug: {
enabled: true,
size: 30,
threshold: 200
}
}
});