Compare commits
4 Commits
f_graceful
...
9095e21e6f
| Author | SHA1 | Date | |
|---|---|---|---|
| 9095e21e6f | |||
| d14e469ef4 | |||
| 99a3e13d77 | |||
| b5c895674e |
11
src/main.js
11
src/main.js
@@ -78,13 +78,14 @@ if(errorMsg){
|
||||
logger.debug("Attaching error-logger..");
|
||||
const loggerTcpdump = logFactory("tcpdump");
|
||||
proc.stderr.setEncoding("utf8").on("data", (data) => {
|
||||
if(!data.match(/^(tcpdump: )?listening on /i)) // Catch start-error
|
||||
loggerTcpdump.error(data);
|
||||
if(!data.match(/^(tcpdump: )?listening on /i) || !data.match(/^\d+ packets captured/i)) { // Catch start-error
|
||||
loggerTcpdump.debug(data);
|
||||
}
|
||||
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);
|
||||
|
||||
@@ -21,6 +21,7 @@ const MEASUREMENT_MAP = new Map([
|
||||
["AuthenticationType", "authenticationType"],
|
||||
["AssociationSuccess", "associationIsSuccessful"],
|
||||
["DisassociationReason", "disassociationReason"],
|
||||
["HandshakeStage", "handshakeStage"],
|
||||
]);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user