diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-05-14 14:09:23 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-05-14 14:09:23 +0000 |
commit | 9f9ba5906cad16f0ab5e3be362253b8fc6ba7128 (patch) | |
tree | d34f50d2c3c0375f11de07946fb291248f6124a2 /engine | |
parent | b13240c84141a54683e918e33847251d00f67098 (diff) | |
download | elgg-9f9ba5906cad16f0ab5e3be362253b8fc6ba7128.tar.gz elgg-9f9ba5906cad16f0ab5e3be362253b8fc6ba7128.tar.bz2 |
made database query logging explicitly set to NOTICE level
git-svn-id: http://code.elgg.org/elgg/trunk@9066 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/database.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php index 6b1b494b9..a20fd1ea4 100644 --- a/engine/lib/database.php +++ b/engine/lib/database.php @@ -386,7 +386,7 @@ function elgg_query_runner($query, $callback = null, $single = false) { $cached_query = $DB_QUERY_CACHE[$hash]; if ($cached_query !== FALSE) { - elgg_log("$query results returned from cache (hash: $hash)"); + elgg_log("$query results returned from cache (hash: $hash)", 'NOTICE'); return $cached_query; } } @@ -415,13 +415,13 @@ function elgg_query_runner($query, $callback = null, $single = false) { } if (empty($return)) { - elgg_log("DB query \"$query\" returned no results."); + elgg_log("DB query \"$query\" returned no results.", 'NOTICE'); } // Cache result if ($DB_QUERY_CACHE) { $DB_QUERY_CACHE[$hash] = $return; - elgg_log("$query results cached (hash: $hash)"); + elgg_log("$query results cached (hash: $hash)", 'NOTICE'); } return $return; @@ -447,7 +447,7 @@ function insert_data($query) { $DB_QUERY_CACHE->clear(); } - elgg_log("Query cache invalidated"); + elgg_log("Query cache invalidated", 'NOTICE'); if (execute_query("$query", $dblink)) { return mysql_insert_id($dblink); @@ -473,7 +473,7 @@ function update_data($query) { // Invalidate query cache if ($DB_QUERY_CACHE) { $DB_QUERY_CACHE->clear(); - elgg_log("Query cache invalidated"); + elgg_log("Query cache invalidated", 'NOTICE'); } if (execute_query("$query", $dblink)) { @@ -500,7 +500,7 @@ function delete_data($query) { // Invalidate query cache if ($DB_QUERY_CACHE) { $DB_QUERY_CACHE->clear(); - elgg_log("Query cache invalidated"); + elgg_log("Query cache invalidated", 'NOTICE'); } if (execute_query("$query", $dblink)) { |