From 48259b281b11fa6c79c796f0d11eba2848eef25e Mon Sep 17 00:00:00 2001 From: Rich Lott Date: Wed, 5 Jul 2023 17:41:49 +0100 Subject: [PATCH] Use afform log channel --- ext/afform/core/Civi/Api4/Action/Afform/Submit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/afform/core/Civi/Api4/Action/Afform/Submit.php b/ext/afform/core/Civi/Api4/Action/Afform/Submit.php index d31b29d1a1..1bde2e3ff2 100644 --- a/ext/afform/core/Civi/Api4/Action/Afform/Submit.php +++ b/ext/afform/core/Civi/Api4/Action/Afform/Submit.php @@ -331,7 +331,7 @@ class Submit extends AbstractProcessor { catch (\CRM_Core_Exception $e) { // What to do here? Sometimes we should silently ignore errors, e.g. an optional entity // intentionally left blank. Other times it's a real error the user should know about. - \Civi::log()->debug("Silently ignoring exception in Afform processGenericEntity call: " . $e->getMessage()); + \Civi::log('afform')->debug("Silently ignoring exception in Afform processGenericEntity call: " . $e->getMessage()); } } } -- 2.25.1