Pass the RFC 3164 severity level thru to drupal watchdog.
authormark burdett <mfburdett@gmail.com>
Thu, 2 May 2019 13:49:06 +0000 (06:49 -0700)
committermark burdett <mfburdett@gmail.com>
Thu, 2 May 2019 13:53:07 +0000 (06:53 -0700)
CRM/Core/Error.php

index 52ee98d4dc47be9393627998cf81b595b6d5acf7..16ac8caf4dd8f7b518a6026b4ad7e9cd868ecdf1 100644 (file)
@@ -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);
       }
     }