Skip to content

Commit 5d54ea5

Browse files
committed
adding more debugging messages
1 parent 4069a7e commit 5d54ea5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/node-http-proxy.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,13 @@ HttpProxy.prototype = {
125125
// Open new HTTP request to internal resource with will act as a reverse proxy pass
126126
var p = manager.getPool(port, server);
127127

128+
sys.puts('current pool count for ' + req.headers.host + ":" + port + ' ' +p.clients.length);
129+
128130
p.on('error', function (err) {
129131
// Remark: We should probably do something here
130132
// but this is a hot-fix because I don't think 'pool'
131133
// should be emitting this event.
132-
sys.puts('p.on, error fired');
134+
sys.puts('p.on, error fired'.red);
133135
eyes.inspect(err);
134136
this.res.end();
135137
});

0 commit comments

Comments
 (0)