From d4b8bb19e6f88771c6b84c95f2226cbeb26c1010 Mon Sep 17 00:00:00 2001 From: maxianming Date: Fri, 10 Apr 2020 14:51:30 +0800 Subject: [PATCH] =?UTF-8?q?Fixed=20by=20fllife:=20handle=5Fmsg=E5=A4=AA?= =?UTF-8?q?=E9=95=BF,=20=E5=AF=BC=E8=87=B4xxl=5Fjob=5Flog=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=A4=B1=E8=B4=A5=EF=BC=8C=E4=BB=8E=E8=80=8C=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E4=B8=8D=E8=83=BD=E8=A7=A6=E5=8F=91=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E5=91=8A=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xxl/job/admin/service/impl/AdminBizImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/AdminBizImpl.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/AdminBizImpl.java index e8ecdd38..3a47cc43 100644 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/AdminBizImpl.java +++ b/xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/AdminBizImpl.java @@ -110,7 +110,13 @@ public class AdminBizImpl implements AdminBiz { // success, save log log.setHandleTime(new Date()); log.setHandleCode(handleCallbackParam.getExecuteResult().getCode()); - log.setHandleMsg(handleMsg.toString()); + + if (handleMsg.length() > 15000) { // text最大64kb 避免长度过长 + log.setHandleMsg(handleMsg.substring(0, 15000)); + } else { + log.setHandleMsg(handleMsg.toString()); + } + xxlJobLogDao.updateHandleInfo(log); return ReturnT.SUCCESS;