From 60719d3f8f9c0dd5095b4913c0cedfe80f5ea871 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Mon, 21 Mar 2022 11:02:33 +0000 Subject: [PATCH] Disable debugging for ACL cache build --- CRM/Contact/BAO/Contact/Permission.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CRM/Contact/BAO/Contact/Permission.php b/CRM/Contact/BAO/Contact/Permission.php index ef5b58281c..2aeca162ff 100644 --- a/CRM/Contact/BAO/Contact/Permission.php +++ b/CRM/Contact/BAO/Contact/Permission.php @@ -230,7 +230,7 @@ WHERE contact_a.id = %1 AND $permission if (!$force) { // skip if already calculated if (!empty(Civi::$statics[__CLASS__]['processed'][$type][$userID])) { - \Civi::log()->debug("CRM_Contact_BAO_Contact_Permission::cache already called. Operation: $operation; UserID: $userID"); + // \Civi::log()->debug("CRM_Contact_BAO_Contact_Permission::cache already called. Operation: $operation; UserID: $userID"); return; } } @@ -243,7 +243,7 @@ WHERE contact_a.id = %1 AND $permission // The default 3 second timeout should be enough for the other process to finish. // However this routine does not return the status either, so basically // its a "lets return and hope for the best" - \Civi::log()->debug("cache: aclcontact lock not acquired for user: $userID"); + // \Civi::log()->debug("cache: aclcontact lock not acquired for user: $userID"); return; } @@ -263,13 +263,12 @@ AND $operationClause if ($count > 0) { Civi::$statics[__CLASS__]['processed'][$type][$userID] = 1; $lock->release(); - \Civi::log() - ->debug("CRM_Contact_BAO_Contact_Permission::cache already called via check query. Operation: $operation; UserID: $userID"); + // \Civi::log()->debug("CRM_Contact_BAO_Contact_Permission::cache already called via check query. Operation: $operation; UserID: $userID"); return; } } - \Civi::log()->debug("cache: building for $userID; operation=$operation; force=$force"); + // \Civi::log()->debug("cache: building for $userID; operation=$operation; force=$force"); $tables = []; $whereTables = []; -- 2.25.1