Skip to content

Commit

Permalink
Merge pull request #14185 from mfb/watchdog
Browse files Browse the repository at this point in the history
Pass the RFC 3164 severity level thru to drupal watchdog.
  • Loading branch information
mattwire authored May 9, 2019
2 parents 2e5c58f + 2d3e6c5 commit 96a959a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ public static function debug_log_message($message, $out = FALSE, $prefix = '', $
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);
}
}

Expand Down

0 comments on commit 96a959a

Please sign in to comment.