Skip to content

Commit

Permalink
adding some debug messages for live testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Marak committed Sep 13, 2010
1 parent 711258e commit 4069a7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/node-http-proxy.js
Expand Up @@ -28,6 +28,7 @@ var sys = require('sys'),
http = require('http'),
events = require('events'),
pool = require('pool'),
eyes = require('eyes'),
min = 0,
max = 100;

Expand Down Expand Up @@ -128,6 +129,9 @@ HttpProxy.prototype = {
// Remark: We should probably do something here
// but this is a hot-fix because I don't think 'pool'
// should be emitting this event.
sys.puts('p.on, error fired');
eyes.inspect(err);
this.res.end();
});

p.request(req.method, req.url, req.headers, function (reverse_proxy) {
Expand Down

0 comments on commit 4069a7e

Please sign in to comment.