]> git.mjollnir.org Git - moodle.git/commitdiff
Adding some traces here and there
authorstronk7 <stronk7>
Sun, 7 Oct 2007 17:28:46 +0000 (17:28 +0000)
committerstronk7 <stronk7>
Sun, 7 Oct 2007 17:28:46 +0000 (17:28 +0000)
admin/cron.php

index b46e9159e2879c13dfff76fbfe9a213bbc3cadbf..dbb0be0ce3e36b63abc705c05d68c91e8db2acd6 100644 (file)
 
         if (!empty($CFG->notifyloginfailures)) {
             notify_login_failures();
+            mtrace('Notified login failured');
         }
         flush();
 
         sync_metacourses();
+        mtrace('Synchronised metacourses');
 
         //
         // generate new password emails for users 
         if(!empty($CFG->usetags)){
             require_once($CFG->dirroot.'/tag/lib.php');
             tag_cron();
+            mtrace ('Executed tag cron');
         }
         
         // Accesslib stuff
         cleanup_contexts();
+        mtrace ('Cleaned up contexts');
         gc_cache_flags();
+        mtrace ('Cleaned cache flags');
         // If you suspect that the context paths are somehow corrupt
         // replace the line below with: build_context_path(true); 
         build_context_path();
+        mtrace ('Built context paths');
+
+        mtrace("Finished clean-up tasks...");
 
     } // End of occasional clean-up tasks