Skip to content

Commit

Permalink
Add gentle deprecation to debug_log_message
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Feb 28, 2023
1 parent 054806b commit 5a44b7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CRM/Core/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,10 @@ public static function debug_var($variable_name, $variable, $print = TRUE, $log
* 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.
Expand Down

0 comments on commit 5a44b7c

Please sign in to comment.