@@ -1,8 +1,8 @@
|
||||
const environment = process.env.NODE_ENV;
|
||||
const environment: string = process.env.NODE_ENV || "Unknown";
|
||||
|
||||
const hideInProduction = ['info', 'dbug'];
|
||||
const hideInProduction: string[] = ['info', 'dbug'];
|
||||
|
||||
async function out(msg, level = 'othr') {
|
||||
async function out(msg: string, level = 'othr') {
|
||||
if (environment === 'production' &&
|
||||
hideInProduction.includes(level.toLowerCase())) {
|
||||
return;
|
||||
Reference in New Issue
Block a user