This commit is contained in:
Manav Rathi 2024-05-17 10:13:44 +05:30
parent 50c1f3301e
commit 4160be30b9
No known key found for this signature in database

View file

@ -70,8 +70,9 @@ const logInfo = (...params: unknown[]) => {
const message = params const message = params
.map((p) => (typeof p == "string" ? p : util.inspect(p))) .map((p) => (typeof p == "string" ? p : util.inspect(p)))
.join(" "); .join(" ");
log.info(`[main] ${message}`); const m = `[info] ${message}`;
if (isDev) console.log(`[info] ${message}`); if (isDev) console.log(m);
log.info(`[main] ${m}`);
}; };
const logDebug = (param: () => unknown) => { const logDebug = (param: () => unknown) => {