]> git.mjollnir.org Git - moodle.git/commitdiff
Correct usage of debugging. MDL-11893 ; merged from 19_STABLE
authorstronk7 <stronk7>
Tue, 15 Apr 2008 21:32:06 +0000 (21:32 +0000)
committerstronk7 <stronk7>
Tue, 15 Apr 2008 21:32:06 +0000 (21:32 +0000)
lib/datalib.php

index 796b721a926a13a03637236bdbceaa42a2ca3f43..287dd63716d6ee81a4d4c31552196ba0487b6592 100644 (file)
@@ -1934,8 +1934,8 @@ function add_to_log($courseid, $module, $action, $url='', $info='', $cm=0, $user
         }
     }
 
-    if (!$result and debugging()) {
-        echo '<p>Error: Could not insert a new entry to the Moodle log</p>';  // Don't throw an error
+    if (!$result) {
+        debugging('Error: Could not insert a new entry to the Moodle log', DEBUG_ALL);
     }
 
 /// Store lastaccess times for the current user, do not use in cron and other commandline scripts