From 5a44b7c9cfe90b590204b2f8e70cd3c6e8723f7f Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 28 Feb 2023 13:47:52 +1300 Subject: [PATCH] Add gentle deprecation to debug_log_message --- CRM/Core/Error.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Core/Error.php b/CRM/Core/Error.php index 1e0a718401..92f14f1d9a 100644 --- a/CRM/Core/Error.php +++ b/CRM/Core/Error.php @@ -566,6 +566,10 @@ class CRM_Core_Error extends PEAR_ErrorStack { * Provided the user has the 'view debug output' the output should be displayed. In all * cases it should be logged. * + * @deprecated see https://docs.civicrm.org/dev/en/latest/framework/logging/ + * + * Use (e.g) `Civi::log()->error()` (priority dependent). + * * @param string $message * @param bool $out * Should we log or return the output. -- 2.25.1