Skip to content

Commit 310ac55

Browse files
committed
RT-44 - masking set to disabled by default
1 parent 37d02e6 commit 310ac55

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ org.apache.log4j.LogManager.shutdown();
5757

5858
The Stackify appender has built-in data masking for credit cards and social security number values.
5959

60-
**Disable Masking:**
60+
**Enable Masking:**
6161

6262
Add `<param name="maskEnabled" value="true"/>` inside the `<appender> ... </appender>` tag.
6363

src/main/java/com/stackify/log/log4j12/StackifyLogAppender.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,8 @@ public void activateOptions() {
183183

184184
// setup masker
185185

186-
if (maskEnabled == null) {
187-
maskEnabled = Boolean.TRUE.toString();
188-
}
189-
190186
Masker masker = new Masker();
191-
if (Boolean.parseBoolean(maskEnabled)) {
187+
if (maskEnabled != null && Boolean.parseBoolean(maskEnabled)) {
192188

193189
// set default masks
194190
masker.addMask(Masker.MASK_CREDITCARD);

0 commit comments

Comments
 (0)