Comparing version 0.0.22 to 0.0.23
@@ -282,4 +282,4 @@ var fs = require('fs'), | ||
if (req) { | ||
if (req.headers[logIDName || 'http_x_bd_logid']) { | ||
logId = parseInt(req.headers[logIDName || 'http_x_bd_logid'], 10); | ||
if (req.headers[logIDName]) { | ||
logId = parseInt(req.headers[logIDName], 10); | ||
} | ||
@@ -668,3 +668,3 @@ else if (parseInt(req.query['logid'], 10) > 0) { | ||
//只在请求过来的时候才设置LogId | ||
logger.params['LogId'] = logger.getLogID(req); | ||
logger.params['LogId'] = logger.getLogID(req, config.LogIdName || 'x_bd_logid'); | ||
logger.parseReqParams(req, res); | ||
@@ -671,0 +671,0 @@ |
{ | ||
"name": "yog-log", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"description": "yog logger", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
73249