From 2d3e6c51eedaebc858632ad5b72ccdca37df0028 Mon Sep 17 00:00:00 2001 From: mark burdett Date: Thu, 2 May 2019 06:49:06 -0700 Subject: [PATCH] Pass the RFC 3164 severity level thru to drupal watchdog. --- CRM/Core/Error.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Error.php b/CRM/Core/Error.php index 52ee98d4dc..16ac8caf4d 100644 --- a/CRM/Core/Error.php +++ b/CRM/Core/Error.php @@ -617,7 +617,7 @@ class CRM_Core_Error extends PEAR_ErrorStack { if (!empty(\Civi::$statics[__CLASS__]['userFrameworkLogging'])) { // should call $config->userSystem->logger($message) here - but I got a situation where userSystem was not an object - not sure why if ($config->userSystem->is_drupal and function_exists('watchdog')) { - watchdog('civicrm', '%message', ['%message' => $message], WATCHDOG_DEBUG); + watchdog('civicrm', '%message', ['%message' => $message], isset($priority) ? $priority : WATCHDOG_DEBUG); } } -- 2.25.1