Commit ae421491 by dingkai

支付sdk异常日志

parent 03febf60
...@@ -1899,7 +1899,7 @@ public class OrderServiceImpl implements Orderservice { ...@@ -1899,7 +1899,7 @@ public class OrderServiceImpl implements Orderservice {
orderPayResponse.setOrderId(orderBean.getOid()); orderPayResponse.setOrderId(orderBean.getOid());
return orderPayResponse; return orderPayResponse;
} catch (Exception e) { } catch (Exception e) {
LogUtil.error("getPreOrderPay_error", JSONObject.toJSONString(orderBean), JSONObject.toJSONString(paymentRequest)); LogUtil.error(trackingNo,"getPreOrderPay_error", JSONObject.toJSONString(orderBean), JSONObject.toJSONString(paymentRequest), e);
//TODO 邮件告警 //TODO 邮件告警
return null; return null;
} }
......
...@@ -22,6 +22,7 @@ import cn.freemud.service.thirdparty.CouponOnlineClient; ...@@ -22,6 +22,7 @@ import cn.freemud.service.thirdparty.CouponOnlineClient;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.freemud.application.sdk.api.log.LogThreadLocal; import com.freemud.application.sdk.api.log.LogThreadLocal;
import com.google.common.base.Throwables;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.ProceedingJoinPoint;
import org.slf4j.Logger; import org.slf4j.Logger;
...@@ -100,7 +101,7 @@ public class LogUtil { ...@@ -100,7 +101,7 @@ public class LogUtil {
message, message,
requestParams, requestParams,
responseParams, responseParams,
DateUtil.convert2String(new Date(), "yyyy-MM-dd HH:mm:ss"), e); DateUtil.convert2String(new Date(), "yyyy-MM-dd HH:mm:ss"), JSONObject.toJSONString(Throwables.getStackTraceAsString(e)));
} }
private static volatile String appName = null; private static volatile String appName = null;
......
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