瀏覽代碼

more logs

isundil 5 年之前
父節點
當前提交
6c5796c029
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      api.php

+ 2 - 0
api.php

@@ -1,6 +1,7 @@
 <?php
 
 function pingServer($hostname, $port) {
+    error_log("trace: pinging " .$hostname .':' .$port);
     $sock = socket_create(AF_INET, SOCK_STREAM, getprotobyname("tcp"));
     if (!$sock)
         return false;
@@ -100,6 +101,7 @@ if (isset($_GET["command"])) {
         } else {
             error_log("Cannot open upload dir for cleaning");
         }
+        error_log("Done cleaning up files");
 
         // Ping servers
         $result = [];