Permalink
Browse files

use "finsh" event to write msg on response time

  • Loading branch information...
1 parent 828e090 commit 4a6b0fb25c765439a4f2213343fa25e624d6904b @youngjay committed Apr 28, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/middleware/logger.js
View
@@ -144,9 +144,9 @@ exports = module.exports = function logger(options) {
// proxy end to output logging
} else {
res.on('finish', function(chunk, encoding) {
- var line = fmt(exports, req, res);
- if (null == line) return;
- stream.write(line + '\n', 'ascii');
+ var line = fmt(exports, req, res);
+ if (null == line) return;
+ stream.write(line + '\n', 'ascii');
});
}

1 comment on commit 4a6b0fb

Owner

youngjay commented on 4a6b0fb Apr 28, 2012

converted the intendations from 1 tab to 2 spaces

Please sign in to comment.