Comparing version 0.2.0 to 0.2.1
@@ -703,3 +703,3 @@ var fs = require('fs'), | ||
//以下参数需要在response finish的时候计算 | ||
logger.params['STATUS'] = res.getHeader() ? res.statusCode : null; | ||
logger.params['STATUS'] = res.statusCode ? res.statusCode : null; | ||
logger.params['CONTENT_LENGTH'] = (res.getHeaders() || {})['content-length'] || '-'; | ||
@@ -706,0 +706,0 @@ if (req._startAt) { |
{ | ||
"name": "yog-log", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "yog logger", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
75168