Browse Source

remove debug logging

andre 1 year ago
parent
commit
6ff5eb2997
1 changed files with 8 additions and 44 deletions
  1. 8 44
      app/Libs/Zimbra/Components/Api/Soap/MySoapClient.php

+ 8 - 44
app/Libs/Zimbra/Components/Api/Soap/MySoapClient.php

@@ -31,19 +31,6 @@ class MySoapClient extends SoapClient
             $request = str_replace(array('ns1:DistributionListActionRequest', 'xmlns:ns2="urn:zimbra"'), array('ns2:DistributionListActionRequest', 'xmlns:ns2="urn:zimbraAccount"'), $request);
         }
 
-        logModuleCall(
-            'zimbraEmail',
-            __FUNCTION__,
-            [
-                $request,
-                $location,
-                $action,
-                $version
-            ],
-            "Debug: request, location, action, version",
-            time()
-        );
-
         $exception = null;
 
         try {
@@ -73,17 +60,16 @@ class MySoapClient extends SoapClient
             //this is where the exception from __doRequest is stored
         
             $exception = $this->__soap_fault;
-        
+
+            logModuleCall(
+                'zimbraEmail',
+                __FUNCTION__,
+                $exception,
+                "Debug: response",
+                $result
+            );
         }
         
-        logModuleCall(
-            'zimbraEmail',
-            __FUNCTION__,
-            $exception,
-            "Debug: response",
-            time()
-        );
-
         return $response;
     }
 
@@ -97,30 +83,8 @@ class MySoapClient extends SoapClient
      */
     public function __soapCall($function_name, array $arguments, array $options = null, $input_headers = null, array &$output_headers = null)
     {
-        logModuleCall(
-            'zimbraEmail',
-            __FUNCTION__,
-            [
-                $function_name,
-                $arguments,
-                $options,
-                $input_headers,
-                $output_headers
-            ],
-            "Debug: function_name, arguments, options, input_headers, output_headers",
-            time()
-        );
-
         $response = parent::__soapCall($function_name, $arguments, $options, $input_headers, $output_headers);
 
-        logModuleCall(
-            'zimbraEmail',
-            __FUNCTION__,
-            $response,
-            "Debug: function_name, arguments, options, input_headers, output_headers",
-            time()
-        );
-
         return $response;
     }