From 7ff2e51b17bcb8dade3d8abb7d19e2227236ab63 Mon Sep 17 00:00:00 2001 From: ac360 Date: Sat, 12 Aug 2017 14:30:29 -0700 Subject: [PATCH] minor mods --- lib/plugins/run/utils/logEventGateway.js | 1 - lib/plugins/run/utils/manageEventGateway.js | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/plugins/run/utils/logEventGateway.js b/lib/plugins/run/utils/logEventGateway.js index 92386afa0..e0ff1a26a 100644 --- a/lib/plugins/run/utils/logEventGateway.js +++ b/lib/plugins/run/utils/logEventGateway.js @@ -65,7 +65,6 @@ const getMessage = msg => { } module.exports = msg => { - console.log(msg) const processedMsg = getMessage(msg); if (processedMsg) { log(`${prefix}${processedMsg}${os.EOL}`); diff --git a/lib/plugins/run/utils/manageEventGateway.js b/lib/plugins/run/utils/manageEventGateway.js index b7757aa58..fdb1ea708 100644 --- a/lib/plugins/run/utils/manageEventGateway.js +++ b/lib/plugins/run/utils/manageEventGateway.js @@ -14,6 +14,7 @@ const registerFunctionsToEventGateway = require('./registerFunctionsToEventGatew const splitLinesAndLog = data => { const str = data.toString('utf8'); + console.log(str) // TODO makes sure this doesn't affect escaped newlines inside event content const lines = str.split(/\r?\n/g); _.forEach(lines, line => { @@ -29,10 +30,10 @@ function manageEventGateway(service, eventsPort, configurationPort, localEmulato logServerless('Initializing Event Gateway...'); const args = [ - `--embed-data-dir=${getTmpDirPath()}`, + `-embed-data-dir=${getTmpDirPath()}`, + '-dev', '-log-level=debug', - '--dev', - '--log-format=json', + '-log-format=json', `-config-port=${configurationPort}`, `-events-port=${eventsPort}`, ];