(taskFinished?: string)
| 251 | return str; |
| 252 | } |
| 253 | export const logTime = (taskFinished?: string) => { |
| 254 | if (!shouldLogTimings) |
| 255 | return; |
| 256 | const end = process.hrtime.bigint(); |
| 257 | console.log(`${pad((end - last).toString(), 15)} ${taskFinished ? "<== " + taskFinished : ""}`); |
| 258 | last = end; |
| 259 | }; |
| 260 | |
| 261 | export async function openLogContents(logType = `txt`, logContents: string, tempPath?: string) { |
| 262 | if (!tempPath) |