From 30e8f64962485dfbc3289166f301161ce8e25bc1 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 27 Apr 2023 20:08:20 +1000 Subject: [PATCH] Switch to use text logger for tx unless html is explicitly requested --- .../java/org/hl7/fhir/r5/context/SimpleWorkerContext.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/SimpleWorkerContext.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/SimpleWorkerContext.java index df80345fc..698325000 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/SimpleWorkerContext.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/SimpleWorkerContext.java @@ -320,10 +320,10 @@ public class SimpleWorkerContext extends BaseWorkerContext implements IWorkerCon try { txLog("Connect to "+client.getAddress()); txClient = client; - if (log != null && log.endsWith(".txt")) { - txLog = new TextClientLogger(log); - } else { + if (log != null && (log.endsWith(".htm") || log.endsWith(".html"))) { txLog = new HTMLClientLogger(log); + } else { + txLog = new TextClientLogger(log); } txClient.setLogger(txLog); txClient.setUserAgent(userAgent);