From f2f04ae7498363ba1a572aaa28232cc809c0cee5 Mon Sep 17 00:00:00 2001 From: Nikhil P Bonte Date: Fri, 25 Aug 2023 11:00:26 +0530 Subject: [PATCH] GOV-1295 Discars Redis log changes --- .../org/apache/atlas/RegexLoggingFilter.java | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 server-api/src/main/java/org/apache/atlas/RegexLoggingFilter.java diff --git a/server-api/src/main/java/org/apache/atlas/RegexLoggingFilter.java b/server-api/src/main/java/org/apache/atlas/RegexLoggingFilter.java deleted file mode 100644 index 66fbc3190b..0000000000 --- a/server-api/src/main/java/org/apache/atlas/RegexLoggingFilter.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.apache.atlas; - -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import org.apache.log4j.spi.Filter; -import org.apache.log4j.spi.LoggingEvent; - -public class RegexLoggingFilter extends Filter { - private Pattern pattern; - - public void setPatternString(String patternString) { - pattern = Pattern.compile(patternString); - } - - @Override - public int decide(LoggingEvent event) { - String message = (String) event.getMessage(); - - final Matcher m = pattern.matcher(message); - return m.matches() ? DENY : NEUTRAL; - } -}