Skip to content
Browse files

Log the internal redirects since they're not seen in the log.

  • Loading branch information...
1 parent 736ef63 commit 4411c0ed24158e395da9f90b53ff1ad4157eba15 @creationix committed Mar 22, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/node-router.js
View
1 lib/node-router.js
@@ -145,6 +145,7 @@ exports.getServer = function getServer(logger) {
// Performs an internal redirect
res.innerRedirect = function innerRedirect(location) {
+ logger("Internal Redirect: " + req.url + " -> " + location);
req.url = location;
doRoute();
}

0 comments on commit 4411c0e

Please sign in to comment.
Something went wrong with that request. Please try again.