mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Ignore stdout errors when running from console
This commit is contained in:
@@ -9,7 +9,7 @@ import { CircularBuffer } from 'cirbuf';
|
||||
import type { BrowserWindow } from 'electron';
|
||||
import { app, ipcMain as ipc } from 'electron';
|
||||
import readFirstLine from 'firstline';
|
||||
import { filter, flatten, map, pick, sortBy } from 'lodash';
|
||||
import { filter, flatten, map, noop, pick, sortBy } from 'lodash';
|
||||
import {
|
||||
createReadStream,
|
||||
mkdirSync,
|
||||
@@ -100,6 +100,8 @@ export async function initialize(
|
||||
streams.push({ stream: rotatingStream });
|
||||
|
||||
if (isRunningFromConsole) {
|
||||
process.stdout.on('error', noop);
|
||||
|
||||
streams.push({
|
||||
level: 'debug' as const,
|
||||
stream: process.stdout,
|
||||
|
||||
Reference in New Issue
Block a user