Browse Source

插件error相关埋点的json直接save

feature/big-screen
alex.sung 5 years ago
parent
commit
bff39359e1
  1. 5
      designer-realize/src/main/java/com/fr/design/mainframe/errorinfo/ErrorInfo.java

5
designer-realize/src/main/java/com/fr/design/mainframe/errorinfo/ErrorInfo.java

@ -37,6 +37,9 @@ public class ErrorInfo {
this.uploadtime = dateToString();
}
public ErrorInfo() {
}
public String getUsername() {
return username;
}
@ -123,7 +126,7 @@ public class ErrorInfo {
saveFileToCache(jo);
}
private void saveFileToCache(JSONObject jo) {
public void saveFileToCache(JSONObject jo) {
String content = jo.toString();
String fileName = UUID.randomUUID() + ErrorInfoUploader.SUFFIX;
File file = new File(StableUtils.pathJoin(ProductConstants.getEnvHome(), ErrorInfoUploader.FOLDER_NAME, fileName));

Loading…
Cancel
Save