Commit 774dd113 authored by 郝聪敏's avatar 郝聪敏

修改 logger 内置参数

parent 7096cc5c
...@@ -51,7 +51,7 @@ module.exports = function (options) { ...@@ -51,7 +51,7 @@ module.exports = function (options) {
const logger = (option, response) => { const logger = (option, response) => {
if (options.logger) { if (options.logger) {
options.logger.info(JSON.stringify({ host: option.uri, ...(response && response.timings)})) options.logger.info(JSON.stringify({ api: option.uri, ...(response && response.timings)}))
} }
} }
......
{ {
"name": "request-proxy", "name": "request-proxy",
"version": "1.2.2", "version": "1.2.3",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment