From 04cda39e2cf8a2b4927266cbefbe79762cd6d883 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 28 Feb 2023 13:36:47 +1300 Subject: [PATCH] Log Smarty debug to it's own channel I just wrote the docs on the right way to log using this example https://docs.civicrm.org/dev/en/latest/framework/logging/ - so we should make it the same. I tested locally & this results in the smarty debugging going to a separate file (good). I personally think we should send all the IPN files off to their own channel but am loath to be pro-active on changing that --- CRM/Core/Smarty.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Smarty.php b/CRM/Core/Smarty.php index da5272d968..769bb813ef 100644 --- a/CRM/Core/Smarty.php +++ b/CRM/Core/Smarty.php @@ -485,7 +485,7 @@ class CRM_Core_Smarty extends Smarty { $value = smarty_modifier_escape($string, $esc_type, $char_set); if ($value !== $string) { - Civi::log()->debug('smarty escaping original {original}, escaped {escaped} type {type} charset {charset}', [ + Civi::log('smarty')->debug('smarty escaping original {original}, escaped {escaped} type {type} charset {charset}', [ 'original' => $string, 'escaped' => $value, 'type' => $esc_type, -- 2.25.1