Skip to content

Commit

Permalink
add debug - fixes #242
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 19, 2015
1 parent 21885b8 commit 60b2337
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/fork.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
'use strict';
var childProcess = require('child_process');
var Promise = require('bluebird');
var path = require('path');
var Promise = require('bluebird');
var debug = require('debug')('ava');
var send = require('./send');

module.exports = function (args) {
Expand Down Expand Up @@ -61,6 +62,7 @@ module.exports = function (args) {
event.name = event.name.replace(/^ava\-/, '');
event.data.file = file;

debug('ipc %s:\n%o', event.name, event.data);
ps.emit(event.name, event.data);
});

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"chalk": "^1.0.0",
"co-with-promise": "^4.6.0",
"core-assert": "^0.1.0",
"debug": "^2.2.0",
"destroy-circular": "jamestalmage/destroy-circular#feeb7d1",
"empower": "^1.1.0",
"figures": "^1.4.0",
Expand Down

0 comments on commit 60b2337

Please sign in to comment.