From 34cfb47e993f8afef6fe17c289b2aa80cbcd3652 Mon Sep 17 00:00:00 2001 From: Mark Stemm Date: Thu, 21 Jan 2016 07:26:28 -0800 Subject: [PATCH] Use send() not process.send(). Some process.send()s were added on master, but they should be just send() so they use the serialization stuff. --- lib/juttle-subprocess.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/juttle-subprocess.js b/lib/juttle-subprocess.js index d4fb1c6..d3cd5e7 100644 --- a/lib/juttle-subprocess.js +++ b/lib/juttle-subprocess.js @@ -9,7 +9,7 @@ var JuttleLogger = require('juttle/lib/logger'); JuttleLogger.getLogger = function(name) { function log(level, args) { - process.send({ + send({ type: 'log', name: name, level: level, @@ -105,7 +105,7 @@ process.on('message', function(msg) { // errors/warnings/sink data. program.events.on('error', function(msg, err) { logger.error(msg, err); - process.send({ + send({ type: 'error', error: err }); @@ -113,7 +113,7 @@ process.on('message', function(msg) { program.events.on('warning', function(msg, warn) { logger.warn(msg, warn); - process.send({ + send({ type: 'warning', warning: warn });