Skip to content

Commit

Permalink
Merge pull request #2 from nickpape/patch-1
Browse files Browse the repository at this point in the history
Log Source IP for a request
  • Loading branch information
dzearing committed Mar 30, 2016
2 parents 7dfe30f + 69adf2f commit fbe69c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServeTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function logRequestsMiddleware(req, res, next) {
} else if (req.url.indexOf('.js') >= 0) {
resourceColor = colors.magenta;
}
console.log(' Request: \'' + resourceColor(req.url) + '\'');
console.log(' Request: [' + req.ip + '] \'' + resourceColor(req.url) + '\'');
}
next();
}
Expand Down

0 comments on commit fbe69c8

Please sign in to comment.