fix(log):日志检索模块,删除历史activesys ,修改logSource数据类型为int。增加NTC_IP_LOG 日志检索测试服务接口。后续删除历史遗留日志检索功能及其相关对象

This commit is contained in:
doufenghu
2018-06-10 16:18:34 +08:00
parent 7991707445
commit ea327b17d7
18 changed files with 314 additions and 5723 deletions

View File

@@ -8,9 +8,7 @@ public class RestServiceException extends RuntimeException{
private int errorCode;
private String logSource;
private String activeSys;
private int logSource;
private String traceCode;
/**
@@ -33,8 +31,10 @@ public class RestServiceException extends RuntimeException{
this.traceCode = thread.getTraceCode();
thread.setConsumerTime(time);
thread.setBusinessCode(this.getErrorCode());
if(StringUtils.isEmpty(thread.getExceptionInfo()))
thread.setExceptionInfo(message);
if(StringUtils.isEmpty(thread.getExceptionInfo())) {
thread.setExceptionInfo(message);
}
new Thread(thread).start();
}
@@ -48,8 +48,10 @@ public class RestServiceException extends RuntimeException{
this.traceCode = thread.getTraceCode();
thread.setConsumerTime(time);
thread.setBusinessCode(this.getErrorCode());
if(StringUtils.isEmpty(thread.getExceptionInfo()))
thread.setExceptionInfo(message);
if(StringUtils.isEmpty(thread.getExceptionInfo())) {
thread.setExceptionInfo(message);
}
new Thread(thread).start();
}
@@ -61,19 +63,14 @@ public class RestServiceException extends RuntimeException{
public void setErrorCode(int errorCode) {
this.errorCode = errorCode;
}
public String getLogSource() {
return logSource;
}
public void setLogSource(String logSource) {
this.logSource = logSource;
}
public String getActiveSys() {
return activeSys;
}
public void setActiveSys(String activeSys) {
this.activeSys = activeSys;
}
public int getLogSource() {
return logSource;
}
public void setLogSource(int logSource) {
this.logSource = logSource;
}
public String getTraceCode() {
return traceCode;