You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2020/03/03 06:01:48 UTC
[GitHub] [incubator-dolphinscheduler] wenhemin commented on a change in pull
request #2063: fix ugly logger usage
wenhemin commented on a change in pull request #2063: fix ugly logger usage
URL: https://github.com/apache/incubator-dolphinscheduler/pull/2063#discussion_r386814198
##########
File path: dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
##########
@@ -116,12 +116,12 @@ public ProcessInstance handleCommand(Logger logger, String host, int validThread
ProcessInstance processInstance = constructProcessInstance(command, host);
//cannot construct process instance, return null;
if(processInstance == null){
- logger.error("scan command, command parameter is error: %s", command.toString());
+ logger.error("scan command, command parameter is error: {}", command);
moveToErrorCommand(command, "process instance is null");
return null;
}
if(!checkThreadNum(command, validThreadNum)){
- logger.info("there is not enough thread for this command: {}",command.toString() );
+ logger.info("there is not enough thread for this command: {}",command );
return setWaitingThreadProcess(command, processInstance);
}
Review comment:
,command ); -> ", command);
beautify format
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services