We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69d8582 commit 22df6ccCopy full SHA for 22df6cc
apps/twig/src/main/index.ts
@@ -115,6 +115,13 @@ process.on("SIGINT", () => handleShutdownSignal("SIGINT"));
115
process.on("SIGHUP", () => handleShutdownSignal("SIGHUP"));
116
117
process.on("uncaughtException", (error) => {
118
+ if (error.message === "write EIO") {
119
+ // stdout/stderr pipe is broken (shutdown). Disable the console transport
120
+ // so it stops hitting the broken pipe, then log to file.
121
+ log.transports.console.level = false;
122
+ log.error("Stdout pipe broken during shutdown (write EIO)");
123
+ return;
124
+ }
125
log.error("Uncaught exception", error);
126
});
127
0 commit comments