Commit 3551b9d5 authored by yanzg's avatar yanzg

修复异常提醒,从而正确的跟踪异常信息

parent 805755e1
...@@ -37,7 +37,7 @@ public class Timeout<T> { ...@@ -37,7 +37,7 @@ public class Timeout<T> {
/** /**
* 开始时间 * 开始时间
* *
* @return * @return 获取开始时间
*/ */
public long getStart() { public long getStart() {
return start; return start;
...@@ -46,7 +46,7 @@ public class Timeout<T> { ...@@ -46,7 +46,7 @@ public class Timeout<T> {
/** /**
* 数据 * 数据
* *
* @return * @return 获取结束时间
*/ */
public T getData() { public T getData() {
return data; return data;
......
...@@ -135,15 +135,6 @@ public class LogLocal implements ThreadNext.Next, InitializingBean { ...@@ -135,15 +135,6 @@ public class LogLocal implements ThreadNext.Next, InitializingBean {
this.resultWrite(log, StringHelper.EMPTY, StringHelper.EMPTY, false); this.resultWrite(log, StringHelper.EMPTY, StringHelper.EMPTY, false);
} }
/**
* 记录超时
*
* @param timeout 超时对象
*/
private void writeTimeout(Timeout<LogVo> timeout) {
this.resultWrite(timeout.getData(), MAX_TIME, MAX_TIME_NAME, true);
}
/** /**
* 是否属于日志服务 * 是否属于日志服务
* *
...@@ -181,7 +172,7 @@ public class LogLocal implements ThreadNext.Next, InitializingBean { ...@@ -181,7 +172,7 @@ public class LogLocal implements ThreadNext.Next, InitializingBean {
} }
// 判断是否达到超时时间 // 判断是否达到超时时间
if (timeout.isMaxTime(this.cloudConfig.getLogTimeMax(), this.cloudConfig.getLogTimeSplit())) { if (timeout.isMaxTime(this.cloudConfig.getLogTimeMax(), this.cloudConfig.getLogTimeSplit())) {
writeTimeout(timeout); this.resultWrite(timeout.getData(), MAX_TIME, MAX_TIME_NAME, true);
} }
} }
return true; return true;
...@@ -190,7 +181,7 @@ public class LogLocal implements ThreadNext.Next, InitializingBean { ...@@ -190,7 +181,7 @@ public class LogLocal implements ThreadNext.Next, InitializingBean {
/** /**
* 沉睡时间 * 沉睡时间
* *
* @return * @return 下次执行时间
*/ */
@Override @Override
public int getNextTime() { public int getNextTime() {
......
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