|
|
|
@ -25,6 +25,7 @@ public class StartErrorMessageCollector {
|
|
|
|
|
private String uuid; |
|
|
|
|
private String activeKey; |
|
|
|
|
|
|
|
|
|
private boolean extraJudgeStart = false; |
|
|
|
|
|
|
|
|
|
public static StartErrorMessageCollector getInstance() { |
|
|
|
|
return INSTANCE; |
|
|
|
@ -42,7 +43,7 @@ public class StartErrorMessageCollector {
|
|
|
|
|
errorInfo.setLogid(id); |
|
|
|
|
errorInfo.setLog(msg); |
|
|
|
|
errorInfo.setStackTrace(detail); |
|
|
|
|
errorInfo.setStarting(DesignerStartupContext.getInstance().isOnStartup()); |
|
|
|
|
errorInfo.setStarting(DesignerStartupContext.getInstance().isOnStartup() || extraJudgeStart); |
|
|
|
|
errorInfo.setRemote(!WorkContext.getCurrent().isLocal()); |
|
|
|
|
errorInfo.saveAsJSON(); |
|
|
|
|
} |
|
|
|
@ -57,4 +58,11 @@ public class StartErrorMessageCollector {
|
|
|
|
|
public void record(String id, String msg) { |
|
|
|
|
record(id, msg, StringUtils.EMPTY); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setExtraJudgeStart(boolean extraJudgeStart) { |
|
|
|
|
this.extraJudgeStart = extraJudgeStart; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|