Merge branch 'feature/webapm' into 'release/0606'
Feature/webapm See merge request !303
Showing
3 changed files
with
4 additions
and
3 deletions
@@ -152,7 +152,7 @@ module.exports = { | @@ -152,7 +152,7 @@ module.exports = { | ||
152 | apiCache: { | 152 | apiCache: { |
153 | cache: true | 153 | cache: true |
154 | }, | 154 | }, |
155 | - zookeeperServer: '192.168.102.168:2188', | 155 | + zookeeperServer: '127.0.0.1:2181', |
156 | redis: { | 156 | redis: { |
157 | connect: { | 157 | connect: { |
158 | host: '127.0.0.1', | 158 | host: '127.0.0.1', |
@@ -79,7 +79,8 @@ exports.serverError = () => { | @@ -79,7 +79,8 @@ exports.serverError = () => { | ||
79 | udid, | 79 | udid, |
80 | code: err.code || 500, | 80 | code: err.code || 500, |
81 | path: `[${req.method}]${routeEncode.getRouter(req)}`, | 81 | path: `[${req.method}]${routeEncode.getRouter(req)}`, |
82 | - url: encodeURIComponent(req.originalUrl) | 82 | + url: encodeURIComponent(req.originalUrl), |
83 | + ip: _.get(req, 'yoho.clientIp', '') | ||
83 | }, | 84 | }, |
84 | fields: { | 85 | fields: { |
85 | message: err.message, | 86 | message: err.message, |
@@ -58,7 +58,7 @@ | @@ -58,7 +58,7 @@ | ||
58 | "uuid": "^2.0.2", | 58 | "uuid": "^2.0.2", |
59 | "yo-cli": "=1.0.7", | 59 | "yo-cli": "=1.0.7", |
60 | "yoho-express-session": "^2.0.0", | 60 | "yoho-express-session": "^2.0.0", |
61 | - "yoho-node-lib": "=0.6.14", | 61 | + "yoho-node-lib": "=0.6.15", |
62 | "yoho-zookeeper": "^1.0.8" | 62 | "yoho-zookeeper": "^1.0.8" |
63 | }, | 63 | }, |
64 | "devDependencies": { | 64 | "devDependencies": { |
-
Please register or login to post a comment