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) => {
const index = (req, res, next) => {
let uid = req.user.uid;
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
Promise.all([
installmentModel.getStauts(uid),
installmentModel.getSearchIntallment({
... ...
... ... @@ -208,7 +208,7 @@ const getStauts = (uid) => {
if (result && result.code === 200) {
return result.data.status;
} else {
logger.error('get installment open status return code is not 200');
logger.error(`get installment open status return code is not 200,uid:${uid},result=${JSON.stringify(result)}`); // eslint-disable-line
return Promise.reject(result);
}
});
... ...