From 4069a7e98c22a48bae7fd57ad5f315d0e5006dfc Mon Sep 17 00:00:00 2001 From: Marak Squires Date: Mon, 13 Sep 2010 18:29:38 -0400 Subject: [PATCH] adding some debug messages for live testing --- lib/node-http-proxy.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/node-http-proxy.js b/lib/node-http-proxy.js index a9a34ad..081a85b 100644 --- a/lib/node-http-proxy.js +++ b/lib/node-http-proxy.js @@ -28,6 +28,7 @@ var sys = require('sys'), http = require('http'), events = require('events'), pool = require('pool'), + eyes = require('eyes'), min = 0, max = 100; @@ -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) {