Этап 4 / Волна 10: корректировка settlement-кейса — доменная фиксация синтеза, честное покрытие, удержание фокуса / Этап 4 / Волна 11: бизнес-якоря, доменное заземление и устранение утечки дебага

This commit is contained in:
2026-03-28 02:17:19 +03:00
parent 914843a8ba
commit a06e575be4
367 changed files with 432257 additions and 3627 deletions
+9 -1
View File
@@ -37,5 +37,13 @@ export function logJson(entry: JsonLogEntry): void {
details: redactObject(entry.details)
};
// Structured JSON logs for diagnostics/trace aggregation.
process.stdout.write(JSON.stringify(safe) + "\n");
try {
process.stdout.write(JSON.stringify(safe) + "\n");
} catch (error) {
const code = (error as { code?: unknown } | null)?.code;
if (code === "ENOSPC" || code === "EPIPE") {
return;
}
throw error;
}
}