Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Commit

Permalink
Enable logging
Browse files Browse the repository at this point in the history
  • Loading branch information
fd committed Mar 1, 2012
1 parent 52fecf4 commit 2ef9b5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/proxy.js
Expand Up @@ -67,6 +67,8 @@ Environment.prototype.respond = function(status) {
, headers
;

console.log("RESP: "+status+" "+this.upstream_url);

file = __dirname + "/../errors/"+status+".html";

headers = {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2ef9b5d

Please sign in to comment.