This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch branch-1.2-unstable
in repository https://gitbox.apache.org/repos/asf/doris.git

commit ff86d6783e6525c5864c2f8793552a32263325ad
Author: AlexYue <yj976240...@gmail.com>
AuthorDate: Wed Nov 30 11:54:39 2022 +0800

    [enhencement](netty) bind netty's default logger when launching fe (#14675)
    
    The logger Doris Fe uses is log4j, while netty might use slf4j to choose 
one logger.
    And it's reported some confusing occasions would happen under such 
circumstance.
    And this binding doesn't take effect if move the bind logic to other file 
or other place within PaloFe.java,
    so I have to leave it before the main function.
---
 fe/fe-core/src/main/java/org/apache/doris/PaloFe.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/PaloFe.java 
b/fe/fe-core/src/main/java/org/apache/doris/PaloFe.java
index 4eb52b9837..6fb315dced 100755
--- a/fe/fe-core/src/main/java/org/apache/doris/PaloFe.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/PaloFe.java
@@ -39,6 +39,8 @@ import org.apache.doris.service.FrontendOptions;
 
 import com.google.common.base.Charsets;
 import com.google.common.base.Strings;
+import 
io.grpc.netty.shaded.io.netty.util.internal.logging.InternalLoggerFactory;
+import io.grpc.netty.shaded.io.netty.util.internal.logging.Log4JLoggerFactory;
 import org.apache.commons.cli.CommandLine;
 import org.apache.commons.cli.CommandLineParser;
 import org.apache.commons.cli.DefaultParser;
@@ -57,6 +59,10 @@ import java.nio.channels.OverlappingFileLockException;
 public class PaloFe {
     private static final Logger LOG = LogManager.getLogger(PaloFe.class);
 
+    static {
+        InternalLoggerFactory.setDefaultFactory(Log4JLoggerFactory.INSTANCE);
+    }
+
     public static final String DORIS_HOME_DIR = System.getenv("DORIS_HOME");
     public static final String PID_DIR = System.getenv("PID_DIR");
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to