Skip to content

Commit

Permalink
show detailed log messages only when debug is not off SC#303
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Aug 28, 2006
1 parent 8403917 commit 790fda7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backup/backup_scheduled.php
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,9 @@ function schedule_backup_course_delete_old_files($preferences,$starttime=0) {
$dirtocheck = $CFG->dataroot."/".$preferences->backup_course."/backupdata";
}
schedule_backup_log($starttime,$preferences->backup_course," checking $dirtocheck");
mtrace(" Keeping backup files in $dirtocheck");
if ($CFG->debug > 7) {
mtrace(" Keeping backup files in $dirtocheck");
}

//Get all the files in $dirtocheck
$files = get_directory_list($dirtocheck,"",false);
Expand Down

0 comments on commit 790fda7

Please sign in to comment.