Tweak log format

This commit is contained in:
Manav Rathi 2024-04-09 09:59:24 +05:30
parent 72dea7eca6
commit 3c9f11ee60
No known key found for this signature in database

View file

@ -60,11 +60,11 @@ const logInfo = (...params: any[]) => {
.map((p) => (typeof p == "string" ? p : util.inspect(p)))
.join(" ");
log.info(`[main] ${message}`);
if (isDev) console.log(message);
if (isDev) console.log(`[info] ${message}`);
};
const logDebug = (param: () => any) => {
if (isDev) console.log(`[main] [debug] ${util.inspect(param())}`);
if (isDev) console.log(`[debug] ${util.inspect(param())}`);
};
/**