Merge pull request #1642 from hapifhir/do-20240530-log-validation-session-counts

Log validation session counts
This commit is contained in:
Grahame Grieve 2024-06-06 09:11:04 +10:00 committed by GitHub
commit 34c4b9600a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -473,10 +473,12 @@ public class ValidationService {
if (sessionId != null) {
System.out.println("No such cached session exists for session id " + sessionId + ", re-instantiating validator.");
}
System.out.println("Building new validator engine from CliContext");
ValidationEngine validator = buildValidationEngine(cliContext, definitions, tt);
sessionId = sessionCache.cacheSession(validator);
System.out.println("Cached new session. Cache size = " + sessionCache.getSessionIds().size());
} else {
System.out.println("Cached session exists for session id " + sessionId + ", returning stored validator session id.");
System.out.println("Cached session exists for session id " + sessionId + ", returning stored validator session id. Cache size = " + sessionCache.getSessionIds().size());
}
return sessionId;
}