Permalink
Browse files

remove debug

  • Loading branch information...
1 parent 8e01982 commit 7ee9eeaaaab6b92cba14d5bd87e9c0bd05236ed6 @ddollar committed Sep 16, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/spawner.js
View
@@ -29,15 +29,14 @@ var Spawner = function(env) {
this.spawn_local = function(command, callback) {
var args = command.match(/("[^"]*"|[^"]+)(\s+|$)/g);
var command = args.shift().replace(/\s+$/g, '');
- console.log('command: [%s]', command);
args = args.map(function(arg) {
return(arg.match(/"?([^"]*)"?/)[1]);
});
var proc = spawn(command, args);
var emitter = new events.EventEmitter();
-
+
proc.stdout.on('data', function(data) {
emitter.emit('data', data);
});
@@ -73,7 +72,7 @@ var Spawner = function(env) {
var url = require('url').parse(data.rendezvous_url);
var rendezvous = new net.Socket();
-
+
rendezvous.connect(url.port, url.hostname, function() {
rendezvous.write(url.pathname.substring(1) + '\n');
});

0 comments on commit 7ee9eea

Please sign in to comment.