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