Showing
1 changed file
with
2 additions
and
1 deletions
@@ -78,7 +78,8 @@ exports.serverError = () => { | @@ -78,7 +78,8 @@ exports.serverError = () => { | ||
78 | udid, | 78 | udid, |
79 | code: err.code || 500, | 79 | code: err.code || 500, |
80 | path: `[${req.method}]${routeEncode.getRouter(req)}`, | 80 | path: `[${req.method}]${routeEncode.getRouter(req)}`, |
81 | - url: encodeURIComponent(req.originalUrl) | 81 | + url: encodeURIComponent(req.originalUrl), |
82 | + ip: _.get(req, 'yoho.clientIp', '') | ||
82 | }, | 83 | }, |
83 | fields: { | 84 | fields: { |
84 | message: err.message, | 85 | message: err.message, |
-
Please register or login to post a comment