aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-21 16:09:43 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-21 16:09:43 +0000
commit734e8279272e81a27fec8ef1327e8eab38dc07ce (patch)
tree5dc015d86e97adab1ae8b81bd55ba032820e9bfa /engine/lib
parent2a577a42b48312f68c86c5fd7f80a7128605a599 (diff)
downloadelgg-734e8279272e81a27fec8ef1327e8eab38dc07ce.tar.gz
elgg-734e8279272e81a27fec8ef1327e8eab38dc07ce.tar.bz2
Reducing the output level of log messages set to "DEBUG".
Debug level messages will be logged at the same level as warnings. Additionally, users will be notified when attempting to run the test suite without first placing the site in debug mode. git-svn-id: http://code.elgg.org/elgg/trunk@3567 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/elgglib.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index a77922a9f..7a10cd809 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -266,10 +266,10 @@ function elgg_view($view, $vars = "", $bypass = false, $debug = false, $viewtype
}
}
if (!$success) {
- elgg_log(" [This view ($view) does not exist] ", 'ERROR');
+ elgg_log("The view $view does not exist", 'ERROR');
}
} else if (!file_exists("$view_location$viewtype/$view.php")) {
- elgg_log(" [This view ($view) does not exist] ", 'WARNING');
+ elgg_log("The view $view does not exist", 'WARNING');
}
}
@@ -1756,12 +1756,12 @@ function elgg_log($message, $level='NOTICE') {
$to_screen = !($CONFIG->debug == 'NOTICE');
switch ($level) {
- case 'DEBUG':
case 'ERROR':
// always report
elgg_dump("$level: $message", $to_screen);
break;
case 'WARNING':
+ case 'DEBUG':
// report execept if user wants only errors
if ($CONFIG->debug != 'ERROR') {
elgg_dump("$level: $message", $to_screen);