Commit 8685102a authored by jiangjiantao's avatar jiangjiantao

错误监控

parent 142a3a2b
......@@ -753,7 +753,6 @@ AlipayLogger.prototype = util.createObject(MiniProgramLogger.prototype), util.ex
u = e.parseResponse(t.data);
f && (u = util.ext(u, util.safetyCall(f, [i.data, t.data], {})));
}
// console.log('request data......', u, t.data, t);
u.msg = JSON.stringify({
msg: u.msg,
request: i.data,
......@@ -776,6 +775,11 @@ AlipayLogger.prototype = util.createObject(MiniProgramLogger.prototype), util.ex
n == "" && t.error && (n = t.error);
var u = "",
r = f ? util.safetyCall(f, [i.data], {}) : {};
u.msg = JSON.stringify({
msg: u.msg,
request: i.data,
response: t.data
});
t && t.body && (u = (u = JSON.stringify(t.body)).substring(0, 256)), e.api(util.ext({
api: o,
success: !1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment