diff --git a/designer/src/com/fr/design/mainframe/errorinfo/ErrorInfo.java b/designer/src/com/fr/design/mainframe/errorinfo/ErrorInfo.java index 5f048caab4..c101706496 100644 --- a/designer/src/com/fr/design/mainframe/errorinfo/ErrorInfo.java +++ b/designer/src/com/fr/design/mainframe/errorinfo/ErrorInfo.java @@ -95,8 +95,8 @@ public class ErrorInfo { } /** - * 将出错对象存为json字符串, 并放到设计器缓存目录. - * 等下一次上传到云中心. + * 灏嗗嚭閿欏璞″瓨涓簀son瀛楃涓, 骞舵斁鍒拌璁″櫒缂撳瓨鐩綍. + * 绛変笅涓娆′笂浼犲埌浜戜腑蹇. */ public void saveAsJSON(){ JSONObject jo = JSONObject.create(); diff --git a/designer/src/com/fr/design/mainframe/errorinfo/ErrorInfoLogAppender.java b/designer/src/com/fr/design/mainframe/errorinfo/ErrorInfoLogAppender.java index f7423d2ba3..1d4f65de53 100644 --- a/designer/src/com/fr/design/mainframe/errorinfo/ErrorInfoLogAppender.java +++ b/designer/src/com/fr/design/mainframe/errorinfo/ErrorInfoLogAppender.java @@ -20,7 +20,7 @@ import org.apache.log4j.spi.LoggingEvent; import java.io.InputStream; /** - * 收集设计器报错信息的appender. + * 鏀堕泦璁捐鍣ㄦ姤閿欎俊鎭殑appender. *
* Created by Administrator on 2017/7/24 0024. */ @@ -28,7 +28,7 @@ public class ErrorInfoLogAppender extends AppenderSkeleton { private static final int ERROR_LEN = 8; - // 缓存下不变的, 没必要频繁取. + // 缂撳瓨涓嬩笉鍙樼殑, 娌″繀瑕侀绻佸彇. private String username; private String uuid; private String activekey; @@ -60,10 +60,10 @@ public class ErrorInfoLogAppender extends AppenderSkeleton { public void subAppend(LoggingEvent event) { Level level = event.getLevel(); - // 只分析上传记录error以上的. + // 鍙垎鏋愪笂浼犺褰昬rror浠ヤ笂鐨. if (level.isGreaterOrEqual(FRLogLevel.ERROR)) { String msg = this.layout.format(event); - // 这个id并不是一定会有的, 有就记录下, 说明是预览模板出的错. + // 杩欎釜id骞朵笉鏄竴瀹氫細鏈夌殑, 鏈夊氨璁板綍涓, 璇存槑鏄瑙堟ā鏉垮嚭鐨勯敊. String templateid = readTemplateID(); String logid = readLogID(msg); ErrorInfo errorInfo = new ErrorInfo(username, uuid, activekey); @@ -103,7 +103,7 @@ public class ErrorInfoLogAppender extends AppenderSkeleton { } String bookPath = infor.getBookPath(); - // 这个iofile只读一个templateid, 其他以后有需要再读. + // 杩欎釜iofile鍙涓涓猼emplateid, 鍏朵粬浠ュ悗鏈夐渶瑕佸啀璇. IOFile file = new IOFile() { @Override public void readStream(InputStream in) throws Exception { diff --git a/designer/src/com/fr/design/mainframe/errorinfo/ErrorInfoUploader.java b/designer/src/com/fr/design/mainframe/errorinfo/ErrorInfoUploader.java index 2ec8c6a3e3..3ee85b5720 100644 --- a/designer/src/com/fr/design/mainframe/errorinfo/ErrorInfoUploader.java +++ b/designer/src/com/fr/design/mainframe/errorinfo/ErrorInfoUploader.java @@ -46,7 +46,7 @@ public class ErrorInfoUploader { } public void sendErrorInfo(){ - //读取文件夹里的json, 加入上传队列中. + //璇诲彇鏂囦欢澶归噷鐨刯son, 鍔犲叆涓婁紶闃熷垪涓. File folder = new File(StableUtils.pathJoin(ProductConstants.getEnvHome(), FOLDER_NAME)); if (!folder.exists()) { return;