Commit 2453c39a by zhangkb

标签导入添加日志信息打印

parent 0b3865fc
package com.keymobile.tagmanager.service;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
......@@ -492,7 +494,8 @@ public class TagFileService {
importLog.setSuccessIds(successIds);
importLog.setReport(importLog.generateReport());
} catch (Exception e) {
importLog.appendErrorMsg(e.getCause().getMessage());
logger.error("异常:",e);
importLog.appendErrorMsg(e.getMessage());
} finally {
importLog.setEndTime(DateUtils.formatDate(new Date(), "yyyy-MM-dd HH:mm:ss"));
importLog.setHasFinish(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment