Switch to use text logger for tx unless html is explicitly requested
This commit is contained in:
parent
b28fe7df7d
commit
30e8f64962
|
@ -320,10 +320,10 @@ public class SimpleWorkerContext extends BaseWorkerContext implements IWorkerCon
|
||||||
try {
|
try {
|
||||||
txLog("Connect to "+client.getAddress());
|
txLog("Connect to "+client.getAddress());
|
||||||
txClient = client;
|
txClient = client;
|
||||||
if (log != null && log.endsWith(".txt")) {
|
if (log != null && (log.endsWith(".htm") || log.endsWith(".html"))) {
|
||||||
txLog = new TextClientLogger(log);
|
|
||||||
} else {
|
|
||||||
txLog = new HTMLClientLogger(log);
|
txLog = new HTMLClientLogger(log);
|
||||||
|
} else {
|
||||||
|
txLog = new TextClientLogger(log);
|
||||||
}
|
}
|
||||||
txClient.setLogger(txLog);
|
txClient.setLogger(txLog);
|
||||||
txClient.setUserAgent(userAgent);
|
txClient.setUserAgent(userAgent);
|
||||||
|
|
Loading…
Reference in New Issue