From f134453bb838c76f046fc450ef15afccd857074e Mon Sep 17 00:00:00 2001 From: zhukai Date: Thu, 5 Dec 2019 17:04:54 +0800 Subject: [PATCH] [dolphinscheduler-#1399][bug]fix the wrong order (#1400) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The method onlineCreateResource in class ResourcesController,The logger.info has wrong field order with fileName and type. Just swap their order. --- .../dolphinscheduler/api/controller/ResourcesController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesController.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesController.java index c132045b73..7bac6614ee 100644 --- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesController.java +++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesController.java @@ -314,7 +314,7 @@ public class ResourcesController extends BaseController{ ) { try{ logger.info("login user {}, online create resource! fileName : {}, type : {}, suffix : {},desc : {},content : {}", - loginUser.getUserName(),type,fileName,fileSuffix,description,content); + loginUser.getUserName(),fileName,type,fileSuffix,description,content); if(StringUtils.isEmpty(content)){ logger.error("resource file contents are not allowed to be empty"); return error(Status.RESOURCE_FILE_IS_EMPTY.getCode(), RESOURCE_FILE_IS_EMPTY.getMsg());