소스 검색

更新 DeployApp 输出的日志内容

reghao 2 년 전
부모
커밋
ad59ee190f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      deployer/src/main/java/cn/reghao/devops/deployer/DeployApp.java

+ 2 - 2
deployer/src/main/java/cn/reghao/devops/deployer/DeployApp.java

@@ -22,7 +22,7 @@ public class DeployApp {
         String localDir = args[0];
         File file1 = new File(localDir);
         if (!file1.exists() || file1.isFile()) {
-            log.error("local_dir is not exist or is a file");
+            log.error("local_dir {} is not exist or is a file", localDir);
             return;
         }
 
@@ -30,7 +30,7 @@ public class DeployApp {
         String serverFile = args[2];
         File file2 = new File(serverFile);
         if (!file2.exists() || file2.isDirectory()) {
-            log.error("server_file is not exist or is a directory");
+            log.error("server_file {} is not exist or is a directory", serverFile);
             return;
         }