Permalink
Browse files

Enable logging

  • Loading branch information...
fd committed Mar 1, 2012
1 parent 52fecf4 commit 2ef9b5ddc14127ad059203d7f9991cc5ccc25950
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/proxy.js
View
@@ -67,6 +67,8 @@ Environment.prototype.respond = function(status) {
, headers
;
+ console.log("RESP: "+status+" "+this.upstream_url);
+
file = __dirname + "/../errors/"+status+".html";
headers = {
@@ -158,6 +160,8 @@ Environment.prototype.forward = function(host, port, res_headers) {
var headers
;
+ console.log("FWRD: "+u_res.statusCode+" "+env.upstream_url);
+
headers = {};
Object.keys(u_res.headers).forEach(function(key){
var name

0 comments on commit 2ef9b5d

Please sign in to comment.