Skip to content

Commit

Permalink
Merge pull request #32181 from eileenmcnaughton/6.0
Browse files Browse the repository at this point in the history
dev/core#5732 Check watchdog function exists
  • Loading branch information
demeritcowboy authored Feb 21, 2025
2 parents 9fc0a1b + 5139a8d commit fd40409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/System/DrupalBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public function checkPermissionAddUser() {
* @inheritDoc
*/
public function logger($message, $priority = NULL) {
if (CRM_Core_Config::singleton()->userFrameworkLogging) {
if (CRM_Core_Config::singleton()->userFrameworkLogging && function_exists('watchdog')) {
watchdog('civicrm', '%message', ['%message' => $message], $priority ?? WATCHDOG_DEBUG);
}
}
Expand Down

0 comments on commit fd40409

Please sign in to comment.