ValidationEngine::validate(): print source file getRef() instead of Object::toString()

`ValidationUtils.SourceFile` does not override Java's default implementation of `toString()`, which is why `validate()'  currently prints "Validate org.hl7.fhir.validation.ValidatorUtils$SourceFile@5382184b" or something like that.
This commit is contained in:
Stefan Otto 2023-06-22 13:00:33 +02:00 committed by GitHub
parent ff44e50fc3
commit 26eb05219a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -598,7 +598,7 @@ public class ValidationEngine implements IValidatorResourceFetcher, IValidationP
if (ref.isProcess() || all) {
TimeTracker.Session tts = context.clock().start("validation");
context.clock().milestone();
System.out.println(" Validate " + ref);
System.out.println(" Validate " + ref.getRef());
try {
OperationOutcome outcome = validate(ref.getRef(), ref.getCnt().getFocus(), ref.getCnt().getCntType(), profiles, record);