Browse Source

enable debug

andre 1 year ago
parent
commit
31affe74cb

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

@@ -327,20 +327,21 @@ class Connection implements ConnectionInterface
         catch (\SoapFault $ex)
         {
             $response->setLastError($ex->getMessage());
+
+            logModuleCall(
+                'zimbraEmail',
+                __FUNCTION__,
+                $ex,
+                "Debug9",
+                $response
+            );
+    
         }
         catch (\Exception $ex)
         {
             $response->setLastError($ex->getMessage());
         }
         
-        logModuleCall(
-            'zimbraEmail',
-            __FUNCTION__,
-            $this,
-            "Debug8",
-            $response
-        );
-
         /**
          * Zimbra api response
          */

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

@@ -44,6 +44,14 @@ 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,
+            "Debug10",
+            $arguments
+        );
+
         //todo logg
         return parent::__soapCall($function_name, $arguments, $options, $input_headers, $output_headers); // TODO: Change the autogenerated stub
     }