From ebc5618e076ec11b4e693c765ad9cc2ac873f3ca Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Sat, 6 Jul 2019 21:55:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E5=BA=A6=E7=BA=BF=E7=A8=8B=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8C=E9=81=BF=E5=85=8D=E5=BC=82=E5=B8=B8=E6=97=A0?= =?UTF-8?q?=E6=B3=95commit=E5=AF=BC=E8=87=B4=E9=94=81=E8=A1=A8=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xxl/job/admin/core/thread/JobScheduleHelper.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobScheduleHelper.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobScheduleHelper.java index 5634aa03..ae7983fe 100644 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobScheduleHelper.java +++ b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobScheduleHelper.java @@ -160,7 +160,9 @@ public class JobScheduleHelper { try { conn.commit(); } catch (SQLException e) { - e.printStackTrace(); + if (!scheduleThreadToStop) { + logger.error(e.getMessage(), e); + } } // close PreparedStatement @@ -168,6 +170,9 @@ public class JobScheduleHelper { try { preparedStatement.close(); } catch (SQLException ignore) { + if (!scheduleThreadToStop) { + logger.error(ignore.getMessage(), ignore); + } } } }