Browse Source

debug mail forwarding

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

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

@@ -55,6 +55,14 @@ class MySoapClient extends SoapClient
         
         }
 
+        logModuleCall(
+            'zimbraEmail',
+            __FUNCTION__,
+            $request,
+            $action,
+            $response
+        );
+    
         if((isset($this->__soap_fault)) && ($this->__soap_fault != null)) {
         
             //this is where the exception from __doRequest is stored
@@ -85,14 +93,6 @@ class MySoapClient extends SoapClient
     {
         $response = parent::__soapCall($function_name, $arguments, $options, $input_headers, $output_headers);
 
-        logModuleCall(
-            'zimbraEmail',
-            __FUNCTION__,
-            [ $function_name, $arguments, $options ],
-            'debug',
-            $response
-        );
-
         return $response;
     }