Skip to content
Browse files

update coke->0.13.6, update logger middleware

  • Loading branch information...
1 parent ed5aed5 commit 6b9e51f0c1d47af3624acbbefb23bc9e39bef049 Fred Chu committed
Showing with 7 additions and 1 deletion.
  1. +6 −0 app/middlewares/logger.js
  2. +1 −1 package.json
View
6 app/middlewares/logger.js
@@ -1,4 +1,10 @@
+var ID = 0;
+
module.exports = function request ( req, res, next ){
+ ID++;
+ req._id = ID;
+ res._id = ID;
+
var end = res.end;
res.end = function ( chunk, encoding ){
res.end = end;
View
2 package.json
@@ -3,7 +3,7 @@
"version" : "0.0.1",
"private" : true,
"dependencies": {
- "coke" : "0.13.5",
+ "coke" : "0.13.6",
"connect-mongodb" : "1.1.5",
"express-messages": "0.0.2",
"moment" : "1.7.0",

0 comments on commit 6b9e51f

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