From 0ea3971ac151fdfc73c127fa75c872d198d80264 Mon Sep 17 00:00:00 2001 From: Brandon Shipley Date: Tue, 15 Sep 2026 19:18:15 -0700 Subject: [PATCH] remove logging in component on getErrors() --- src/Controller/Component/ContactUsComponent.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/Controller/Component/ContactUsComponent.php b/src/Controller/Component/ContactUsComponent.php index 0470a53..bba2c6a 100644 --- a/src/Controller/Component/ContactUsComponent.php +++ b/src/Controller/Component/ContactUsComponent.php @@ -8,7 +8,6 @@ use Cake\Core\Configure; use Cake\Datasource\EntityInterface; use Cake\Http\Response; use Cake\I18n\DateTime; -use Cake\Log\Log; use Cake\ORM\Table; use Cake\ORM\TableRegistry; use CakeContactUs\CakeContactUsPlugin; @@ -55,7 +54,6 @@ class ContactUsComponent extends Component { $this->setConfig('requireEmail', Configure::readOrFail('ContactUs.fields.email')); $this->setConfig('requireCaptcha', $requireCaptcha); if ($requireCaptcha) { -// $this->_registry->load('Captcha.Captcha'); $this->getController()->viewBuilder()->addHelpers(['Captcha.Captcha']); } } @@ -96,10 +94,6 @@ class ContactUsComponent extends Component { if ($result instanceof EntityInterface) { $postData = $result->toArray(); $contactUsFormSubmission = $this->ContactUsFormSubmissions->patchEntity($contactUsFormSubmission, $postData); - if ($contactUsFormSubmission->getErrors()) { - Log::debug(print_r('$contactUsFormSubmission->getErrors()', true)); - Log::debug(print_r($contactUsFormSubmission->getErrors(), true)); - } $contactUsFormSubmissionSaved = $this->ContactUsFormSubmissions->save($contactUsFormSubmission); if ($contactUsFormSubmissionSaved) { return $this->_afterFormSaved($contactUsFormSubmissionSaved); @@ -115,11 +109,6 @@ class ContactUsComponent extends Component { } $contactUsFormSubmission = $this->ContactUsFormSubmissions->patchEntity($contactUsFormSubmission, $postData); - if ($contactUsFormSubmission->getErrors()) { - Log::debug(print_r('$contactUsFormSubmission->getErrors()', true)); - Log::debug(print_r($contactUsFormSubmission->getErrors(), true)); - } - $contactUsFormSubmissionSaved = $this->ContactUsFormSubmissions->save($contactUsFormSubmission); if ($contactUsFormSubmissionSaved) {