From cfd6b213474d171793feaf0cf855d7b58a553bd2 Mon Sep 17 00:00:00 2001 From: ac360 Date: Mon, 14 Aug 2017 11:08:00 -0700 Subject: [PATCH] minor tweaks to formatting --- lib/plugins/run/utils/logEventGateway.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/plugins/run/utils/logEventGateway.js b/lib/plugins/run/utils/logEventGateway.js index b45c9deb826..6237cef2707 100644 --- a/lib/plugins/run/utils/logEventGateway.js +++ b/lib/plugins/run/utils/logEventGateway.js @@ -35,14 +35,14 @@ const getMessage = msg => { } else if (parsedMsg.msg === 'Event received.') { const event = JSON.parse(parsedMsg.event); const text = `Event received: ${event.event}${os.EOL}`; - return `${text}${colorDim(prettifyValue(event))}`; + return `${text}${colorDim(prettifyValue(event))}${os.EOL}`; } else if (parsedMsg.msg === 'Function triggered.') { - const event = prettifyValue(JSON.parse(parsedMsg.event)); - const text = `Function triggered: ${parsedMsg.functionId}${os.EOL}${colorDim(event)}`; + // const event = prettifyValue(JSON.parse(parsedMsg.event)); + const text = `Function triggered: ${parsedMsg.functionId}${os.EOL}`; return `${text}`; } else if (parsedMsg.msg === 'Function finished.') { const response = prettifyValue(JSON.parse(parsedMsg.response)); - const text = `Function finished: ${parsedMsg.functionId}${os.EOL}${colorDim(response)}`; + const text = `Function finished: ${parsedMsg.functionId}${os.EOL}${colorDim(response)}${os.EOL}`; return `${text}`; } else if (parsedMsg.msg === 'Function invocation failed.') { const text = `Failed to invoke function ${parsedMsg.functionId}${os.EOL}`;