Isolating debug and perfdebug behaviours...now

each one controls its own output.
This commit is contained in:
stronk7
2006-05-01 23:16:48 +00:00
parent 0c1e3a145f
commit bb4a5741d1
+1 -1
View File
@@ -2156,7 +2156,7 @@ function print_footer($course=NULL, $usercourse=NULL) {
/// Provide some performance info if required
$performanceinfo = '';
if (defined('MDL_PERF') || $CFG->debug > 7 || $CFG->perfdebug > 7) {
if (defined('MDL_PERF') || $CFG->perfdebug > 7) {
$perf = get_performance_info();
if (defined('MDL_PERFTOLOG')) {
error_log("PERF: " . $perf['txt']);