2
0
Эх сурвалжийг харах

[Web] Remove broken logger examples

andryyy 6 жил өмнө
parent
commit
f8d26d9415

+ 0 - 41
data/web/inc/functions.docker.inc.php

@@ -16,19 +16,10 @@ function docker($action, $service_name = null, $attr1 = null, $attr2 = null, $ex
       if ($response === false) {
       if ($response === false) {
         $err = curl_error($curl);
         $err = curl_error($curl);
         curl_close($curl);
         curl_close($curl);
-        // logger(array('return' => array(
-          // 'type' => 'danger',
-          // 'log' => array(__FUNCTION__, $action, $service_name, $attr1, $attr2, $extra_headers),
-          // 'msg' => $err,
-        // )));
         return $err;
         return $err;
       }
       }
       else {
       else {
         curl_close($curl);
         curl_close($curl);
-        // logger(array('return' => array(
-          // 'type' => 'success',
-          // 'log' => array(__FUNCTION__, $action, $service_name, $attr1, $attr2, $extra_headers),
-        // )));
         $containers = json_decode($response, true);
         $containers = json_decode($response, true);
         if (!empty($containers)) {
         if (!empty($containers)) {
           foreach ($containers as $container) {
           foreach ($containers as $container) {
@@ -50,19 +41,10 @@ function docker($action, $service_name = null, $attr1 = null, $attr2 = null, $ex
       if ($response === false) {
       if ($response === false) {
         $err = curl_error($curl);
         $err = curl_error($curl);
         curl_close($curl);
         curl_close($curl);
-        // logger(array('return' => array(
-          // 'type' => 'danger',
-          // 'log' => array(__FUNCTION__, $action, $service_name, $attr1, $attr2, $extra_headers),
-          // 'msg' => $err,
-        // )));
         return $err;
         return $err;
       }
       }
       else {
       else {
         curl_close($curl);
         curl_close($curl);
-        // logger(array('return' => array(
-          // 'type' => 'success',
-          // 'log' => array(__FUNCTION__, $action, $service_name, $attr1, $attr2, $extra_headers),
-        // )));
         $containers = json_decode($response, true);
         $containers = json_decode($response, true);
         if (!empty($containers)) {
         if (!empty($containers)) {
           foreach ($containers as $container) {
           foreach ($containers as $container) {
@@ -89,11 +71,6 @@ function docker($action, $service_name = null, $attr1 = null, $attr2 = null, $ex
           curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/containers/' . $container_id . '/json');
           curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/containers/' . $container_id . '/json');
         }
         }
         else {
         else {
-          // logger(array('return' => array(
-            // 'type' => 'danger',
-            // 'log' => array(__FUNCTION__, $action, $service_name, $attr1, $attr2, $extra_headers),
-            // 'msg' => 'invalid_container_id'
-          // )));
           return false;
           return false;
         }
         }
       }
       }
@@ -104,19 +81,10 @@ function docker($action, $service_name = null, $attr1 = null, $attr2 = null, $ex
       if ($response === false) {
       if ($response === false) {
         $err = curl_error($curl);
         $err = curl_error($curl);
         curl_close($curl);
         curl_close($curl);
-        // logger(array('return' => array(
-          // 'type' => 'danger',
-          // 'log' => array(__FUNCTION__, $action, $service_name, $attr1, $attr2, $extra_headers),
-          // 'msg' => $err,
-        // )));
         return $err;
         return $err;
       }
       }
       else {
       else {
         curl_close($curl);
         curl_close($curl);
-        // logger(array('return' => array(
-          // 'type' => 'success',
-          // 'log' => array(__FUNCTION__, $action, $service_name, $attr1, $attr2, $extra_headers),
-        // )));
         $decoded_response = json_decode($response, true);
         $decoded_response = json_decode($response, true);
         if (!empty($decoded_response)) {
         if (!empty($decoded_response)) {
           if (empty($service_name)) {
           if (empty($service_name)) {
@@ -164,19 +132,10 @@ function docker($action, $service_name = null, $attr1 = null, $attr2 = null, $ex
           if ($response === false) {
           if ($response === false) {
             $err = curl_error($curl);
             $err = curl_error($curl);
             curl_close($curl);
             curl_close($curl);
-            // logger(array('return' => array(array(
-              // 'type' => 'danger',
-              // 'log' => array(__FUNCTION__, $action, $service_name, $attr1, $attr2, $extra_headers),
-              // 'msg' => $err,
-            // ))));
             return $err;
             return $err;
           }
           }
           else {
           else {
             curl_close($curl);
             curl_close($curl);
-            // logger(array('return' => array(array(
-              // 'type' => 'success',
-              // 'log' => array(__FUNCTION__, $action, $service_name, $attr1, $attr2, $extra_headers),
-            // ))));
             if (empty($response)) {
             if (empty($response)) {
               return true;
               return true;
             }
             }