From cdb70824c40a3eb9b79902400761adce7fa43ef0 Mon Sep 17 00:00:00 2001 From: zhuangchong Date: Thu, 30 Mar 2023 17:45:54 +0800 Subject: [PATCH] fix log error in the PythonGateway --- .../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); }); }