From 43c25ae4f84eb3c02477c7b0373d86eb24f6de1d Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 5 Nov 2021 17:14:08 +1100 Subject: [PATCH] fix rule around request/response when logging --- .../main/java/org/hl7/fhir/r5/context/HTMLClientLogger.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/HTMLClientLogger.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/HTMLClientLogger.java index 63c8170b8..34be2ba32 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/HTMLClientLogger.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/HTMLClientLogger.java @@ -89,12 +89,12 @@ public class HTMLClientLogger extends BaseLogger implements ToolingClientLogger if (DEBUG) { System.out.println(" txlog resp: " +outcome+" "+present(body)); } - if (!req) { - System.out.println("Record Response without request"); - } req = false; if (file == null) return; + if (!req) { + System.out.println("Record Response without request"); + } file.println("
");
     file.println(outcome);
     for (String s : headers)