浏览代码

debug usageupdate

andre 4 年之前
父节点
当前提交
1bb5e8909a
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 7 7
      zimbraSingle.php

+ 7 - 7
zimbraSingle.php

@@ -238,6 +238,13 @@ 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']);
@@ -263,13 +270,6 @@ function zimbraSingle_UsageUpdate($params) {
             continue;
         }
         $mboxSize = $mboxInfo['S'];
-        logModuleCall(
-            'zimbrasingle',
-            __FUNCTION__,
-            $mboxSize,
-            $product['username'],
-            $accountQuota
-        );
         try {
             Capsule::table('tblhosting')
                 ->where('id', '=', $product['id'])