diff --git a/src/main/java/org/owasp/esapi/logging/appender/LogPrefixAppender.java b/src/main/java/org/owasp/esapi/logging/appender/LogPrefixAppender.java index fac90757f..d0000bc31 100644 --- a/src/main/java/org/owasp/esapi/logging/appender/LogPrefixAppender.java +++ b/src/main/java/org/owasp/esapi/logging/appender/LogPrefixAppender.java @@ -46,14 +46,11 @@ public class LogPrefixAppender implements LogAppender { * @param logServerIp Whether or not to record server ip information * @param logApplicationName Whether or not to record application name * @param appName Application Name to record. + * @param logPrefix is set by default to true */ + @SuppressWarnings("JavadocReference") public LogPrefixAppender(boolean logUserInfo, boolean logClientInfo, boolean logServerIp, boolean logApplicationName, String appName) { - this.logUserInfo = logUserInfo; - this.logClientInfo = logClientInfo; - this.logServerIp = logServerIp; - this.logApplicationName = logApplicationName; - this.appName = appName; - this.logPrefix = true; + this(logUserInfo, logClientInfo, logServerIp, logApplicationName, appName, true); } /** diff --git a/src/test/java/org/owasp/esapi/logging/appender/LogPrefixAppenderTest.java b/src/test/java/org/owasp/esapi/logging/appender/LogPrefixAppenderTest.java index 3de2b16be..cbd368b5e 100644 --- a/src/test/java/org/owasp/esapi/logging/appender/LogPrefixAppenderTest.java +++ b/src/test/java/org/owasp/esapi/logging/appender/LogPrefixAppenderTest.java @@ -34,7 +34,6 @@ public class LogPrefixAppenderTest { private String testLogMessage = testName.getMethodName() + "-MESSAGE"; private String testApplicationName = testName.getMethodName() + "-APPLICATION_NAME"; private EventType testEventType = Logger.EVENT_UNSPECIFIED; - //private boolean testIgnorePrefix = true; private EventTypeLogSupplier etlsSpy; private ClientInfoSupplier cisSpy;