When in prod mode, only log timers an errors
This commit is contained in:
parent
a80c9c632b
commit
b5571c2eb2
@ -38,6 +38,10 @@ const delay = ms => new Promise(res => setTimeout(res, ms));
|
||||
implementation of log helper */
|
||||
async function log(msg, type) {
|
||||
var time = new Date().toISOString();
|
||||
const mode = "prod"
|
||||
if (mode === "prod" && type != "ERR") {
|
||||
return;
|
||||
}
|
||||
switch (type) {
|
||||
case "ERR":
|
||||
console.error(`${time} - ${msg}`);
|
||||
|
Reference in New Issue
Block a user