aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 10:39:09 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 10:39:09 +0000
commita89df62c0e28f178a9f83c15317b5dd951e2fb65 (patch)
treec987242310c9912d191028aa76dc25e6dc76a55e
parent4973086aa9dd4d482e54c0e5b177c09251e6a7ec (diff)
downloadelgg-a89df62c0e28f178a9f83c15317b5dd951e2fb65.tar.gz
elgg-a89df62c0e28f178a9f83c15317b5dd951e2fb65.tar.bz2
Only log warnings in debug mode.
git-svn-id: https://code.elgg.org/elgg/trunk@1880 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/elgglib.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 00a0c83ba..763b69911 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1334,7 +1334,10 @@
break;
default:
- error_log("DEBUG: " . $error);
+ global $CONFIG;
+ if (isset($CONFIG->debug)) {
+ error_log("DEBUG: " . $error);
+ }
// register_error("DEBUG: " . $error);
}