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

caishunfeng pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 00b18ed422 [Improve]Remove the code logger.isDebugEnabled() #5918 
#10542 (#12738)
00b18ed422 is described below

commit 00b18ed4228d39718777efde867d2bc6aabc9fff
Author: XCL <[email protected]>
AuthorDate: Mon Nov 7 09:58:19 2022 +0800

    [Improve]Remove the code logger.isDebugEnabled() #5918 #10542 (#12738)
    
    Co-authored-by: chunlai.xu <[email protected]>
---
 .../apache/dolphinscheduler/service/process/ProcessServiceImpl.java | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessServiceImpl.java
 
b/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessServiceImpl.java
index 70d4c52504..a71edd61c0 100644
--- 
a/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessServiceImpl.java
+++ 
b/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessServiceImpl.java
@@ -1427,10 +1427,8 @@ public class ProcessServiceImpl implements 
ProcessService {
                 resourceInfo.setRes(res.getRes());
                 resourceInfo.setResourceName(resourceFullName);
             }
-            if (logger.isInfoEnabled()) {
-                logger.info("updated resource info {}",
-                        JSONUtils.toJsonString(resourceInfo));
-            }
+            logger.info("updated resource info {}",
+                    JSONUtils.toJsonString(resourceInfo));
         }
         return resourceInfo;
     }

Reply via email to