Tweak log format
This commit is contained in:
parent
72dea7eca6
commit
3c9f11ee60
1 changed files with 2 additions and 2 deletions
|
@ -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())}`);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue