Polishing

This commit is contained in:
Andy Wilkinson 2016-08-22 11:07:17 +01:00
parent 54a3ce8827
commit 81275887e4
1 changed files with 4 additions and 2 deletions

View File

@ -412,9 +412,11 @@ public class UndertowEmbeddedServletContainerFactory
private AccessLogHandler createAccessLogHandler(HttpHandler handler) {
try {
createAccessLogDirectoryIfNecessary();
String prefix = (this.accessLogPrefix != null ? this.accessLogPrefix : "access_log.");
String prefix = (this.accessLogPrefix != null ? this.accessLogPrefix
: "access_log.");
AccessLogReceiver accessLogReceiver = new DefaultAccessLogReceiver(
createWorker(), this.accessLogDirectory, prefix, this.accessLogSuffix);
createWorker(), this.accessLogDirectory, prefix,
this.accessLogSuffix);
String formatString = (this.accessLogPattern != null) ? this.accessLogPattern
: "common";
return new AccessLogHandler(handler, accessLogReceiver, formatString,