microservice_framework_version_6 icon indicating copy to clipboard operation
microservice_framework_version_6 copied to clipboard

Reduce logging level for validating without Schema Catalog

Open jgraham0325 opened this issue 7 years ago • 1 comments

Enhancement Request: Reduce the logging level for not using schema catalog for validation since it's making logs very difficult to read.

Class:: uk.gov.justice.services.core.json.FileBasedJsonSchemaValidator#validateWithoutSchemaCatalog

Example of current logs (1000s of entries): 2018-05-16 12:16:23,144 INFO [uk.gov.justice.services.core.json.FileBasedJsonSchemaValidator] (Thread-11 (ActiveMQ-client-global-threads-1842456363)) [{"serviceContext":"mireportdata-usersgroups-event-listener","metadata":{"context":{"user":"7a04cabb-102a-4737-9ae1-a703dcf62cff"},"id":"12e70316-522b-4c12-9bd3-d805075c0e6c","name":"usersgroups.user-details-changed","causation":["84d79669-68fe-4824-90f3-d022cd3a86a7"],"createdAt":"2018-05-16T12:16:22.954Z","stream":{"id":"7aee5dea-b0de-4604-b49b-86c7788cfc4b","version":2}}}] Falling back to file based schema lookup, no catalog schema found for: usersgroups.user-details-changed

jgraham0325 avatar May 18 '18 10:05 jgraham0325

I'm happy to create a pull request for this - just need to find some time!

jgraham0325 avatar May 18 '18 10:05 jgraham0325