Integrate worker to offload main thread from heavy tasks

This commit is contained in:
2025-11-11 15:13:38 +01:00
parent 0f1fff0609
commit 0451a1c960
8 changed files with 115 additions and 205 deletions

View File

@@ -30,6 +30,7 @@ export class Logger{
await mkdir(logsDir, { recursive: true });
await appendFile(fullPath, `${time} - ${message} -> ${error.message} \n`);
console.error(error.stackTrace);
console.error(`An error occured. The incident has been logged in ${fullPath}`)
} catch (err) {
console.error("Error writing log:", err);