Authored by 毕凯

Merge branch 'hotfix/logerror' into 'master'

logger-add



See merge request !524
@@ -56,6 +56,7 @@ const _repaymentList = (req, res, next, opt, params) => { @@ -56,6 +56,7 @@ const _repaymentList = (req, res, next, opt, params) => {
56 const index = (req, res, next) => { 56 const index = (req, res, next) => {
57 let uid = req.user.uid; 57 let uid = req.user.uid;
58 58
  59 + logger.info(`installment index info: client_type=${req.query.client_type},req.user.uid=${req.user.uid},req.query.uid=${req.query.uid},cookies=${JSON.stringify(req.cookies)}`); // eslint-disable-line
59 Promise.all([ 60 Promise.all([
60 installmentModel.getStauts(uid), 61 installmentModel.getStauts(uid),
61 installmentModel.getSearchIntallment({ 62 installmentModel.getSearchIntallment({
@@ -208,7 +208,7 @@ const getStauts = (uid) => { @@ -208,7 +208,7 @@ const getStauts = (uid) => {
208 if (result && result.code === 200) { 208 if (result && result.code === 200) {
209 return result.data.status; 209 return result.data.status;
210 } else { 210 } else {
211 - logger.error('get installment open status return code is not 200'); 211 + logger.error(`get installment open status return code is not 200,uid:${uid},result=${JSON.stringify(result)}`); // eslint-disable-line
212 return Promise.reject(result); 212 return Promise.reject(result);
213 } 213 }
214 }); 214 });