From d14e469ef4121e92dc8b0a16e902ecacfeb17fcc Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 29 Nov 2021 15:35:53 +0100 Subject: [PATCH] Removed error-logging from RegexBlockStream FIXME --- src/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index 5527113..d471c8f 100644 --- a/src/main.js +++ b/src/main.js @@ -84,9 +84,8 @@ if(errorMsg){ else loggerTcpdump.error(data); }); - regexBlockStream.on('error', (err) => { - if(err) loggerTcpdump.error(err); - }) + // FIXME: This is a hacky workaround to not let errors from subprocess bubble up and terminate our process + regexBlockStream.on('error', (err) => {}); proc.on("error", (err) => { loggerTcpdump.error(err);