Browse files

Updated logger middleware comments

connect.logger(function(req, res){ return 'some format string' }) actually ends up being called with the arguments exports, req, and res. I've updated the comments to match the behavior.
  • Loading branch information...
1 parent e713ca8 commit a6fabf7cb82277f59fccb50de51d64d797f56a87 @rsolomo rsolomo committed Nov 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/middleware/logger.js
View
2 lib/middleware/logger.js
@@ -66,7 +66,7 @@ var defaultBufferDuration = 1000;
* connect.logger({ immediate: true, format: 'dev' })
* connect.logger(':method :url - :referrer')
* connect.logger(':req[content-type] -> :res[content-type]')
- * connect.logger(function(req, res){ return 'some format string' })
+ * connect.logger(function(exports, req, res){ return 'some format string' })
*
* Defining Tokens:
*

0 comments on commit a6fabf7

Please sign in to comment.