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

kerwin pushed a commit to branch 3.1.5-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/3.1.5-prepare by this push:
     new cdb70824c4 fix log error in the PythonGateway
cdb70824c4 is described below

commit cdb70824c40a3eb9b79902400761adce7fa43ef0
Author: zhuangchong <[email protected]>
AuthorDate: Thu Mar 30 17:45:54 2023 +0800

    fix log error in the PythonGateway
---
 .../java/org/apache/dolphinscheduler/api/python/PythonGateway.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/python/PythonGateway.java
 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/python/PythonGateway.java
index 93045e436d..0eae3e6e9f 100644
--- 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/python/PythonGateway.java
+++ 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/python/PythonGateway.java
@@ -508,7 +508,7 @@ public class PythonGateway {
                 .filter(dataSource -> type == null || 
StringUtils.equalsIgnoreCase(dataSource.getType().name(), type))
                 .collect(Collectors.toList());
 
-        log.info("Get the datasource list match the type are: {}", 
dataSourceListMatchType);
+        logger.info("Get the datasource list match the type are: {}", 
dataSourceListMatchType);
         if (dataSourceListMatchType.size() > 1) {
             String msg = String.format("Get more than one datasource by name 
%s", datasourceName);
             logger.error(msg);
@@ -517,7 +517,7 @@ public class PythonGateway {
 
         return dataSourceListMatchType.stream().findFirst().orElseThrow(() -> {
             String msg = String.format("Can not find any datasource by name %s 
and type %s", datasourceName, type);
-            log.error(msg);
+            logger.error(msg);
             return new IllegalArgumentException(msg);
         });
     }

Reply via email to