diff options
Diffstat (limited to 'src/main/java/org/onap')
-rw-r--r-- | src/main/java/org/onap/aai/validation/controller/ValidationController.java | 4 | ||||
-rw-r--r-- | src/main/java/org/onap/aai/validation/logging/ApplicationMsgs.java | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/org/onap/aai/validation/controller/ValidationController.java b/src/main/java/org/onap/aai/validation/controller/ValidationController.java index 60d1c1c..15e35b1 100644 --- a/src/main/java/org/onap/aai/validation/controller/ValidationController.java +++ b/src/main/java/org/onap/aai/validation/controller/ValidationController.java @@ -276,6 +276,7 @@ public class ValidationController { publishValidationResults(result.validationResults); } else { stats.incrementEventCount(eventSource, "filtered"); + applicationLogger.info(ApplicationMsgs.FILTERED_EVENT,event); } } catch (Exception e) { applicationLogger.error(ApplicationMsgs.CANNOT_VALIDATE_ERROR, e, event); @@ -312,10 +313,11 @@ public class ValidationController { validationResults = modelDrivenValidator.validate(event); stats.incrementEventCount(eventSource, "model"); } else { - applicationLogger.debug("Event has not been validated. Invalid event type. Event :" + event); + applicationLogger.info(ApplicationMsgs.INVALID_EVENT_TYPE, event); stats.incrementEventCount(eventSource, "invalid"); } } else { + applicationLogger.info(ApplicationMsgs.MISSING_EVENT_TYPE, event); stats.incrementEventCount(eventSource, "missing event type"); } diff --git a/src/main/java/org/onap/aai/validation/logging/ApplicationMsgs.java b/src/main/java/org/onap/aai/validation/logging/ApplicationMsgs.java index 6066a20..061809d 100644 --- a/src/main/java/org/onap/aai/validation/logging/ApplicationMsgs.java +++ b/src/main/java/org/onap/aai/validation/logging/ApplicationMsgs.java @@ -61,7 +61,10 @@ public enum ApplicationMsgs implements LogMessageEnum { READ_FILE_STREAM_ERROR, STRING_UTILS_INVALID_REGEX, MALFORMED_REQUEST_ERROR, - PROCESS_REQUEST_ERROR; + PROCESS_REQUEST_ERROR, + INVALID_EVENT_TYPE, + MISSING_EVENT_TYPE, + FILTERED_EVENT; // @formatter:on /** |