This commit is contained in:
Mia 2025-11-23 19:44:44 -06:00
parent be4f2bd6ab
commit f66eef5271

View File

@ -58,7 +58,7 @@ export function crashlogger(
console.error(`\n[${Date.now()}] CRASH: ${stack}\n`);
const out = fs.createWriteStream(logPath, { flags: 'a' });
out.on('open', () => {
out.write(`\n${stack}\n`);
out.write(`\n[${Date.now()}] ${stack}\n`);
out.end();
}).on('error', (err: Error) => {
console.error(`\nSUBCRASH: ${err.stack}\n`);