Browse Source

[dolphinscheduler-#1399][bug]fix the wrong order (#1400)

The method onlineCreateResource in class ResourcesController,The logger.info has wrong field order with fileName and type. Just swap their order.
pull/2/head
zhukai 5 years ago committed by qiaozhanwei
parent
commit
f134453bb8
  1. 2
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesController.java

2
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());

Loading…
Cancel
Save