Showing
1 changed file
with
5 additions
and
2 deletions
@@ -60,7 +60,7 @@ public class ClientReportCosn implements DisposableBean { | @@ -60,7 +60,7 @@ public class ClientReportCosn implements DisposableBean { | ||
60 | private TextFileWriter getTextFileWriter(ClientReportErrorModel model) { | 60 | private TextFileWriter getTextFileWriter(ClientReportErrorModel model) { |
61 | String dateId = getDateId(model.getTs()); | 61 | String dateId = getDateId(model.getTs()); |
62 | if (StringUtils.isBlank(dateId)) { | 62 | if (StringUtils.isBlank(dateId)) { |
63 | - logger.warn("getDateId is null"); | 63 | + logger.warn("getDateId is null, model :{}", model.toString()); |
64 | return null; | 64 | return null; |
65 | } | 65 | } |
66 | if (fileWriter == null) { | 66 | if (fileWriter == null) { |
@@ -94,10 +94,13 @@ public class ClientReportCosn implements DisposableBean { | @@ -94,10 +94,13 @@ public class ClientReportCosn implements DisposableBean { | ||
94 | private String getDateId(String ts) { | 94 | private String getDateId(String ts) { |
95 | if (ts.length() == 14) { | 95 | if (ts.length() == 14) { |
96 | return ts.substring(0, 8); | 96 | return ts.substring(0, 8); |
97 | - } | 97 | + } else { |
98 | + logger.warn("ts:{} is invaild", ts); | ||
98 | return null; | 99 | return null; |
99 | } | 100 | } |
100 | 101 | ||
102 | + } | ||
103 | + | ||
101 | public String toFormatString(ClientReportErrorModel model) { | 104 | public String toFormatString(ClientReportErrorModel model) { |
102 | return model.getTime() + '|' | 105 | return model.getTime() + '|' |
103 | + model.getcId() + '|' | 106 | + model.getcId() + '|' |
-
Please register or login to post a comment