This is an automated email from the ASF dual-hosted git repository. rcordier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-jspf.git
commit 625f23e71c8421aada163172224625826f68070d Author: Benoit Tellier <btell...@linagora.com> AuthorDate: Sun Dec 19 21:14:33 2021 +0700 Remove unused logger from SPFQuery --- .../main/java/org/apache/james/jspf/impl/SPFQuery.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/resolver/src/main/java/org/apache/james/jspf/impl/SPFQuery.java b/resolver/src/main/java/org/apache/james/jspf/impl/SPFQuery.java index 008a260..a1f53a9 100644 --- a/resolver/src/main/java/org/apache/james/jspf/impl/SPFQuery.java +++ b/resolver/src/main/java/org/apache/james/jspf/impl/SPFQuery.java @@ -28,10 +28,6 @@ import org.apache.commons.cli.ParseException; import org.apache.commons.cli.PosixParser; import org.apache.james.jspf.core.exceptions.SPFErrorConstants; import org.apache.james.jspf.executor.SPFResult; -import org.apache.log4j.ConsoleAppender; -import org.apache.log4j.Level; -import org.apache.log4j.Logger; -import org.apache.log4j.SimpleLayout; /** * This class is used for commandline usage of JSPF @@ -79,8 +75,6 @@ public class SPFQuery { private final static String CMD_TRUSTED_FORWARDER = "enable-trusted-forwarder"; private final static char CHAR_TRUSTED_FORWARDER = 't'; - private static Logger logger = Logger.getRootLogger(); - /** * @param args * The commandline arguments to parse @@ -94,12 +88,6 @@ public class SPFQuery { boolean useBestGuess = false; boolean useTrustedForwarder = false; - SimpleLayout layout = new SimpleLayout(); - ConsoleAppender consoleAppender = new ConsoleAppender(layout); - logger.addAppender(consoleAppender); - - logger.setLevel(Level.ERROR); - Options options = generateOptions(); CommandLineParser parser = new PosixParser(); @@ -115,11 +103,6 @@ public class SPFQuery { // check if all needed values was set if (ip != null && sender != null && helo != null) { - if (line.hasOption(CHAR_DEBUG)) - logger.setLevel(Level.DEBUG); - if (line.hasOption(CHAR_VERBOSE)) - logger.setLevel(Level.TRACE); - SPF spf = new DefaultSPF(); // Check if we should set a costum default explanation --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org