Explorar o código

debug usageupdate

andre %!s(int64=4) %!d(string=hai) anos
pai
achega
38af932537
Modificáronse 1 ficheiros con 7 adicións e 7 borrados
  1. 7 7
      zimbraSingle.php

+ 7 - 7
zimbraSingle.php

@@ -238,16 +238,16 @@ function zimbraSingle_UsageUpdate($params) {
         ->where('server', '=', $params['serverid'])
         ->where('domainstatus', '=', 'Active')
         ->get();
-    logModuleCall(
-        'zimbrasingle',
-        __FUNCTION__,
-        $productsObj,
-        'Debug',
-        $params
-    );
     foreach((array)$productsObj as $productObj) {
         $product = get_object_vars($productObj[0]);
         $accountQuota = $apiAccountManager->getQuota($product['username']);
+        logModuleCall(
+            'zimbrasingle',
+            __FUNCTION__,
+            $product,
+            'Debug',
+            $accountQuota
+        );
         if(is_a($accountQuota, 'Exception')) {
             logModuleCall(
                 'zimbrasingle',