projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa94459
)
CRM-14850 update use of ufLogging to not call ->is_drupal
author
Eileen McNaughton
<eileen@fuzion.co.nz>
Sun, 22 Jun 2014 23:39:37 +0000
(11:39 +1200)
committer
Eileen McNaughton
<eileen@fuzion.co.nz>
Sun, 22 Jun 2014 23:39:37 +0000
(11:39 +1200)
CRM/Core/Error.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/Error.php
b/CRM/Core/Error.php
index f11d4ba618854b1c090c83970df440c5284c2283..87b60d3756ba522f625a1724c5d36e97ca3da394 100644
(file)
--- a/
CRM/Core/Error.php
+++ b/
CRM/Core/Error.php
@@
-580,7
+580,6
@@
class CRM_Core_Error extends PEAR_ErrorStack {
* @static
*/
static function debug_log_message($message, $out = FALSE, $comp = '') {
- $config = CRM_Core_Config::singleton();
$file_log = self::createDebugLogger($comp);
$file_log->log("$message\n");
@@
-590,11
+589,7
@@
class CRM_Core_Error extends PEAR_ErrorStack {
}
$file_log->close();
- if ($config->userFrameworkLogging) {
- if ($config->userSystem->is_drupal and function_exists('watchdog')) {
- watchdog('civicrm', $message, NULL, WATCHDOG_DEBUG);
- }
- }
+ if (CRM_Core_Config::singleton()->userSystem->logger($message));
return $str;
}