Skip to content

Commit

Permalink
minor tweaks to formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
austencollins committed Aug 14, 2017
1 parent 30451fc commit cfd6b21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/plugins/run/utils/logEventGateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit cfd6b21

Please sign in to comment.