Commit 9f7106c7 authored by Andy Wilkinson's avatar Andy Wilkinson

Polish

parent 6cc0968b
...@@ -426,7 +426,7 @@ public class UndertowEmbeddedServletContainerFactory ...@@ -426,7 +426,7 @@ public class UndertowEmbeddedServletContainerFactory
XnioWorker worker = createWorker(); XnioWorker worker = createWorker();
String prefix = (this.accessLogPrefix != null ? this.accessLogPrefix String prefix = (this.accessLogPrefix != null ? this.accessLogPrefix
: "access_log."); : "access_log.");
DefaultAccessLogReceiver accessLogReceiver = new DefaultAccessLogReceiver( final DefaultAccessLogReceiver accessLogReceiver = new DefaultAccessLogReceiver(
worker, this.accessLogDirectory, prefix, this.accessLogSuffix, worker, this.accessLogDirectory, prefix, this.accessLogSuffix,
this.accessLogRotate); this.accessLogRotate);
EventListener listener = new AccessLogShutdownListener(worker, EventListener listener = new AccessLogShutdownListener(worker,
...@@ -450,8 +450,8 @@ public class UndertowEmbeddedServletContainerFactory ...@@ -450,8 +450,8 @@ public class UndertowEmbeddedServletContainerFactory
private AccessLogHandler createAccessLogHandler(HttpHandler handler, private AccessLogHandler createAccessLogHandler(HttpHandler handler,
AccessLogReceiver accessLogReceiver) { AccessLogReceiver accessLogReceiver) {
createAccessLogDirectoryIfNecessary(); createAccessLogDirectoryIfNecessary();
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,
Undertow.class.getClassLoader()); Undertow.class.getClassLoader());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment