mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
add req.url so that connect works with restify
This commit is contained in:
parent
bcc3d4630f
commit
552a7177bc
@ -179,7 +179,8 @@ function assemble_tokens(req, res, custom_tokens) {
|
||||
|
||||
/**
|
||||
* Return request url path,
|
||||
* adding this function prevents the Cyclomatic Complexity for the assemble_tokens function at low, to pass the tests.
|
||||
* adding this function prevents the Cyclomatic Complexity,
|
||||
* for the assemble_tokens function at low, to pass the tests.
|
||||
*
|
||||
* @param {IncomingMessage} req
|
||||
* @return {String}
|
||||
@ -187,7 +188,7 @@ function assemble_tokens(req, res, custom_tokens) {
|
||||
*/
|
||||
|
||||
function getUrl(req){
|
||||
return req.originalUrl || req.url
|
||||
return req.originalUrl || req.url;
|
||||
}
|
||||
/**
|
||||
* Return formatted log line.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user