Polishing
This commit is contained in:
parent
54a3ce8827
commit
81275887e4
|
|
@ -412,9 +412,11 @@ public class UndertowEmbeddedServletContainerFactory
|
||||||
private AccessLogHandler createAccessLogHandler(HttpHandler handler) {
|
private AccessLogHandler createAccessLogHandler(HttpHandler handler) {
|
||||||
try {
|
try {
|
||||||
createAccessLogDirectoryIfNecessary();
|
createAccessLogDirectoryIfNecessary();
|
||||||
String prefix = (this.accessLogPrefix != null ? this.accessLogPrefix : "access_log.");
|
String prefix = (this.accessLogPrefix != null ? this.accessLogPrefix
|
||||||
|
: "access_log.");
|
||||||
AccessLogReceiver accessLogReceiver = new DefaultAccessLogReceiver(
|
AccessLogReceiver accessLogReceiver = new DefaultAccessLogReceiver(
|
||||||
createWorker(), this.accessLogDirectory, prefix, this.accessLogSuffix);
|
createWorker(), this.accessLogDirectory, prefix,
|
||||||
|
this.accessLogSuffix);
|
||||||
String formatString = (this.accessLogPattern != null) ? this.accessLogPattern
|
String formatString = (this.accessLogPattern != null) ? this.accessLogPattern
|
||||||
: "common";
|
: "common";
|
||||||
return new AccessLogHandler(handler, accessLogReceiver, formatString,
|
return new AccessLogHandler(handler, accessLogReceiver, formatString,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue