Commit 9df01a20 authored by yanzg's avatar yanzg

表结构修改

parent 28e2c0e6
...@@ -55,6 +55,7 @@ public class ThreadNext { ...@@ -55,6 +55,7 @@ public class ThreadNext {
*/ */
private static void runNext(Next next) { private static void runNext(Next next) {
boolean isPause = true; boolean isPause = true;
long newErrorTime = System.currentTimeMillis();
Exception frontEx = null; Exception frontEx = null;
while (isPause) { while (isPause) {
try { try {
...@@ -62,9 +63,10 @@ public class ThreadNext { ...@@ -62,9 +63,10 @@ public class ThreadNext {
} catch (Exception ex) { } catch (Exception ex) {
boolean isNewEx = frontEx == null || !(frontEx.getClass() == ex.getClass() && boolean isNewEx = frontEx == null || !(frontEx.getClass() == ex.getClass() &&
StringHelper.compare(frontEx.getMessage(), ex.getMessage())); StringHelper.compare(frontEx.getMessage(), ex.getMessage()));
if (isNewEx) { if (isNewEx || System.currentTimeMillis() - newErrorTime > 5L * 60L * 1000L) {
ex.printStackTrace(); ex.printStackTrace();
Log.error(ThreadNext.class, ex); Log.error(ThreadNext.class, ex);
newErrorTime = System.currentTimeMillis();
} }
frontEx = ex; frontEx = ex;
} }
......
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