healchow commented on code in PR #8319:
URL: https://github.com/apache/inlong/pull/8319#discussion_r1241728549
##########
inlong-audit/audit-proxy/src/main/java/org/apache/inlong/audit/source/ServerMessageHandler.java:
##########
@@ -147,6 +151,13 @@ private AuditReply handleRequest(AuditRequest
auditRequest) throws Exception {
List<AuditMessageBody> bodyList = auditRequest.getMsgBodyList();
int errorMsgBody = 0;
for (AuditMessageBody auditMessageBody : bodyList) {
+ long msgDays = messageDays(auditMessageBody.getLogTs());
+ if (msgDays >= this.msgValidThresholdDays) {
+ String msg = String.format("Discard the data as it is from" +
msgDays +
+ "days ago . Note: Only data with a log timestamp less
than 7 days is considered valid.");
+ LOGGER.warn(msg);
Review Comment:
```suggestion
LOGGER.warn("Discard the data as it is from {} days ago,
only the data with a log timestamp"
+ " less than {} days is valid", msgDays,
this.msgValidThresholdDays);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]