Authored by li.rongzheng

增加打印日志

... ... @@ -60,7 +60,7 @@ public class ClientReportCosn implements DisposableBean {
private TextFileWriter getTextFileWriter(ClientReportErrorModel model) {
String dateId = getDateId(model.getTs());
if (StringUtils.isBlank(dateId)) {
logger.warn("getDateId is null");
logger.warn("getDateId is null, model :{}", model.toString());
return null;
}
if (fileWriter == null) {
... ... @@ -94,8 +94,11 @@ public class ClientReportCosn implements DisposableBean {
private String getDateId(String ts) {
if (ts.length() == 14) {
return ts.substring(0, 8);
} else {
logger.warn("ts:{} is invaild", ts);
return null;
}
return null;
}
public String toFormatString(ClientReportErrorModel model) {
... ...