From 1ceef602f09362d26930347e4521d75350b65055 Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Tue, 31 May 2022 15:44:56 +0200 Subject: [PATCH] Remove debug --- core/dbobject.class.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/dbobject.class.php b/core/dbobject.class.php index 90a484b51..0fe23d064 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -352,10 +352,6 @@ abstract class DBObject implements iDisplay public function Reload($bAllowAllData = false) { assert($this->m_bIsInDB); - $sClass = get_class($this); - if ($sClass == 'UserRequest') { - IssueLog::Debug("CRUD: Reload $sClass::{$this->m_iKey} from DB", LogChannels::DM_CRUD); - } $this->FireEvent(EVENT_SERVICE_DB_OBJECT_RELOAD); $aRow = MetaModel::MakeSingleRow(get_class($this), $this->m_iKey, false /* must be found */, true /* AllowAllData */); if (empty($aRow)) @@ -3147,7 +3143,6 @@ abstract class DBObject implements iDisplay $sClass = get_class($this); $sKey = $this->GetKey(); if (!MetaModel::StartReentranceProtection(Metamodel::REENTRANCE_TYPE_UPDATE, $this)) { - IssueLog::Debug("CRUD: DBUpdate $sClass::$sKey Rejected (reentrance)", LogChannels::DM_CRUD); return false; @@ -3899,9 +3894,6 @@ abstract class DBObject implements iDisplay IssueLog::Error("$sClass: Transition $sStimulusCode is not allowed in ".$this->Get($sStateAttCode)); return false; } - if ($sClass == 'UserRequest') { - IssueLog::Debug("CRUD: ApplyStimulus $sStimulusCode $sClass::{$this->m_iKey} Starting", LogChannels::DM_CRUD); - } // save current object values in case of an action failure (in memory rollback) $aBackupValues = array(); foreach (MetaModel::ListAttributeDefs($sClass) as $sAttCode => $oAttDef) { @@ -4056,9 +4048,6 @@ abstract class DBObject implements iDisplay $aEventData['action'] = $sActionDesc; $this->FireEvent(EVENT_SERVICE_DB_APPLY_STIMULUS_FAILED, $aEventData); } - if ($sClass == 'UserRequest') { - IssueLog::Debug("CRUD: ApplyStimulus $sStimulusCode $sClass::{$this->m_iKey} Ending", LogChannels::DM_CRUD); - } return $bSuccess; }