From: nickw Date: Mon, 19 Oct 2009 18:47:30 +0000 (+0000) Subject: Replacing a direct call to error_log() with new elgg_log(). X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=7d8bc65388b3070015dde6c7829f585abdbc02dc;p=lorea%2Felgg.git Replacing a direct call to error_log() with new elgg_log(). git-svn-id: http://code.elgg.org/elgg/trunk@3564 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/engine/lib/database.php b/engine/lib/database.php index 96dac3846..bffc2fc86 100644 --- a/engine/lib/database.php +++ b/engine/lib/database.php @@ -111,9 +111,7 @@ function db_delayedexecution_shutdown_hook() { $query_details['h']($result); } } catch (Exception $e) { // Suppress all errors since these can't be delt with here - if (isset($CONFIG->debug)) { - error_log($e); - } + elgg_log($e, 'WARNING'); } } }