Skip to content

Commit

Permalink
Use send() not process.send().
Browse files Browse the repository at this point in the history
Some process.send()s were added on master, but they should be just
send() so they use the serialization stuff.
  • Loading branch information
Mark Stemm committed Jan 21, 2016
1 parent 5a4c494 commit 34cfb47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/juttle-subprocess.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -105,15 +105,15 @@ 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
});
});

program.events.on('warning', function(msg, warn) {
logger.warn(msg, warn);
process.send({
send({
type: 'warning',
warning: warn
});
Expand Down

0 comments on commit 34cfb47

Please sign in to comment.