Commit 7d3b92c0 by 徐康

异常处理

parent a492736b
......@@ -462,10 +462,19 @@ public class ThirdDeliveryServiceImpl implements ThirdDeliveryService {
}
ecologyAdminApplicationClient.subscribeMessage(request);
} catch (Exception e) {
LogUtil.error("麦咖啡订阅消息推送失败:", orderId, "", e);
ApiLog.info("麦咖啡订阅消息推送失败" + orderId + getExceptionInfo(e));
}
}
private String getExceptionInfo(Exception e) {
StringBuilder sb = new StringBuilder();
StackTraceElement[] trace = e.getStackTrace();
for (StackTraceElement traceElement : trace) {
sb.append("\tat " + traceElement);
}
return sb.toString();
}
/**
* 配送消息推送
*/
......
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