You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2021/12/02 03:43:41 UTC

[incubator-doris] branch master updated: [refactor](log) Remove unused log instance creation (#7249)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 5f7c4f9  [refactor](log) Remove unused log instance creation (#7249)
5f7c4f9 is described below

commit 5f7c4f903fb51b2cb67ebdbdf4532db69e72bada
Author: Wei <hs...@163.com>
AuthorDate: Thu Dec 2 11:43:29 2021 +0800

    [refactor](log) Remove unused log instance creation (#7249)
---
 .../main/java/org/apache/doris/http/ActionController.java  | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/http/ActionController.java b/fe/fe-core/src/main/java/org/apache/doris/http/ActionController.java
index 7d9c1aa..8264f91 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/http/ActionController.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/http/ActionController.java
@@ -17,25 +17,21 @@
 
 package org.apache.doris.http;
 
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
-
 import org.apache.doris.common.path.PathTrie;
 import com.google.common.base.Strings;
 
 import io.netty.handler.codec.http.HttpMethod;
 
 public class ActionController {
-    private static final Logger LOG = LogManager.getLogger(ActionController.class);
     private final PathTrie<IAction> getHandlers = new PathTrie<>(WebUtils.REST_DECODER);
     private final PathTrie<IAction> postHandlers = new PathTrie<>(WebUtils.REST_DECODER);
     private final PathTrie<IAction> putHandlers = new PathTrie<>(WebUtils.REST_DECODER);
     private final PathTrie<IAction> deleteHandlers = new PathTrie<>(WebUtils.REST_DECODER);
     private final PathTrie<IAction> headHandlers = new PathTrie<>(WebUtils.REST_DECODER);
     private final PathTrie<IAction> optionsHandlers = new PathTrie<>(WebUtils.REST_DECODER);
-    
+
     // Registers a rest handler to be execute when the provided method and path match the request.
-    public void registerHandler(HttpMethod method, String path, IAction handler) 
+    public void registerHandler(HttpMethod method, String path, IAction handler)
             throws IllegalArgException {
         if (method.equals(HttpMethod.GET)) {
             getHandlers.insert(path, handler);
@@ -54,7 +50,7 @@ public class ActionController {
                     "Can't handle [" + method + "] for path [" + path + "]");
         }
     }
-    
+
     public IAction getHandler(BaseRequest request) {
         String path = getPath(request.getRequest().uri());
         HttpMethod method = request.getRequest().method();
@@ -74,8 +70,8 @@ public class ActionController {
             return null;
         }
     }
-    
-    // e.g. 
+
+    // e.g.
     // in: /www/system?path=//jobs
     // out: /www/system
     private String getPath(String uri) {

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