mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Do not continue writing after stream has closed
This commit is contained in:
@@ -69,6 +69,14 @@ export async function initialize(): Promise<pinoms.Logger> {
|
||||
rotate: 3,
|
||||
});
|
||||
|
||||
stream.on('close', () => {
|
||||
globalLogger = undefined;
|
||||
});
|
||||
|
||||
stream.on('error', () => {
|
||||
globalLogger = undefined;
|
||||
});
|
||||
|
||||
const streams: pinoms.Streams = [];
|
||||
streams.push({ stream });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user