diff --git a/ais-structure/src/config/express.js b/ais-structure/src/config/express.js index 3aa05e7..039cf25 100644 --- a/ais-structure/src/config/express.js +++ b/ais-structure/src/config/express.js @@ -271,7 +271,7 @@ module.exports = function () { app.use( function( req, res, next ) { // console.log("end"); // console.log(req.res.resBody); - log.logSummary(req.res.resBody); + log.logSummary(JSON.parse(req.res.resBody)); } ); return app; diff --git a/ais-structure/src/modules/customer/customer.ctrl.js b/ais-structure/src/modules/customer/customer.ctrl.js index 6d99bb8..6a6a253 100644 --- a/ais-structure/src/modules/customer/customer.ctrl.js +++ b/ais-structure/src/modules/customer/customer.ctrl.js @@ -33,10 +33,12 @@ exports.customer = async function (req, res, next) { { if(resultObj.resultData && resultObj.resultData.length>0) { + stats.receiveRestResponse(d01,"GET",sendCmd,"Success"); var response = responseMsg.success(req,getCmd,resultObj); log.addSuccessSummary(sacf,sendCmd,response); }else { + stats.receiveRestResponse(d01,"GET",sendCmd,"Data Not Found"); var response = responseMsg.error(req,getCmd,40300); log.addErrorSummary(sacf,sendCmd,response); } -- libgit2 0.21.2