Switch to use text logger for tx unless html is explicitly requested

This commit is contained in:
Grahame Grieve 2023-04-27 20:08:20 +10:00
parent b28fe7df7d
commit 30e8f64962
1 changed files with 3 additions and 3 deletions

View File

@ -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);