diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/ValidationEngine.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/ValidationEngine.java index c7d501197..6e8c21fa8 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/ValidationEngine.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/ValidationEngine.java @@ -634,7 +634,8 @@ public class ValidationEngine { return FhirFormat.TEXT; } catch (Exception e) { } - System.out.println(" .. not a resource: "+filename); + if (debug) + System.out.println(" .. not a resource: "+filename); return null; } diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/Validator.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/Validator.java index 05206260c..dd733395d 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/Validator.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/Validator.java @@ -384,6 +384,7 @@ public class Validator { System.out.println(" .. connect to tx server @ "+txServer); System.out.println(" .. definitions from "+definitions); ValidationEngine validator = new ValidationEngine(definitions, txServer, txLog, FhirPublication.fromCode(sv)); + validator.setDebug(doDebug); System.out.println(" (v"+validator.getContext().getVersion()+")"); if (sv != null) validator.setVersion(sv); @@ -396,7 +397,6 @@ public class Validator { validator.setHintAboutNonMustSupport(hintAboutNonMustSupport); validator.setAnyExtensionsAllowed(anyExtensionsAllowed); validator.setLanguage(lang); - validator.setDebug(doDebug); IParser x; if (output != null && output.endsWith(".json"))