Sfoglia il codice sorgente

更新 DeployApp 输出的日志内容

reghao 2 anni fa
parent
commit
ad59ee190f

+ 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;
         }