From 4c5e58b46acaf4541fbd741b97593618f027be2d Mon Sep 17 00:00:00 2001 From: vongosling Date: Mon, 28 Aug 2017 18:16:39 +0800 Subject: [PATCH] Minor Polish --- .../main/java/org/apache/rocketmq/client/log/ClientLogger.java | 1 - .../java/org/apache/rocketmq/client/log/ClientLoggerTest.java | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/main/java/org/apache/rocketmq/client/log/ClientLogger.java b/client/src/main/java/org/apache/rocketmq/client/log/ClientLogger.java index e84a069d..c3df9a63 100644 --- a/client/src/main/java/org/apache/rocketmq/client/log/ClientLogger.java +++ b/client/src/main/java/org/apache/rocketmq/client/log/ClientLogger.java @@ -98,7 +98,6 @@ public class ClientLogger { initialize.invoke(joranConfigurator, "log4j2", logConfigFilePath); } } - //logClass = classType; } catch (Exception e) { System.err.println(e); } diff --git a/client/src/test/java/org/apache/rocketmq/client/log/ClientLoggerTest.java b/client/src/test/java/org/apache/rocketmq/client/log/ClientLoggerTest.java index 0559e0d8..d3f3be79 100644 --- a/client/src/test/java/org/apache/rocketmq/client/log/ClientLoggerTest.java +++ b/client/src/test/java/org/apache/rocketmq/client/log/ClientLoggerTest.java @@ -43,9 +43,10 @@ public class ClientLoggerTest { // FIXME: Workaround for concrete implementation for slf4j, is there any better solution for all slf4j implementations in one class ? 2017/8/1 @Test - public void testLog4j() throws Exception { + public void testLog4j2() throws Exception { Logger logger = ClientLogger.getLog(); + System.out.println(logger); assertEquals("org.apache.logging.slf4j.Log4jLogger", logger.getClass().getName()); } } -- GitLab