Просмотр исходного кода

更新 DeployApp 输出的日志内容

reghao 2 лет назад
Родитель
Сommit
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];
         String localDir = args[0];
         File file1 = new File(localDir);
         File file1 = new File(localDir);
         if (!file1.exists() || file1.isFile()) {
         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;
             return;
         }
         }
 
 
@@ -30,7 +30,7 @@ public class DeployApp {
         String serverFile = args[2];
         String serverFile = args[2];
         File file2 = new File(serverFile);
         File file2 = new File(serverFile);
         if (!file2.exists() || file2.isDirectory()) {
         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;
             return;
         }
         }