]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Replacing a direct call to error_log() with new elgg_log().
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 19 Oct 2009 18:47:30 +0000 (18:47 +0000)
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 19 Oct 2009 18:47:30 +0000 (18:47 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3564 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/database.php

index 96dac3846f60f705f02a78e458b630bfd8ff6db1..bffc2fc86eeaeaf3d490f1ccb417832ac6267f0e 100644 (file)
@@ -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');
                }
        }
 }