Commit 9df01a20 authored by yanzg's avatar yanzg

表结构修改

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