Skip to content

Commit

Permalink
Printing ADODB error to the web server error log (MDL-14628)
Browse files Browse the repository at this point in the history
Merged from MOODLE_18_STABLE and MOODLE_19_STABLE
  • Loading branch information
fmarier committed May 7, 2008
1 parent 23360b8 commit 211c689
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/setup.php
Expand Up @@ -155,6 +155,8 @@
echo '</td></tr></table>';
echo '</body></html>';

error_log('ADODB Error: '.$db->ErrorMsg()); // see MDL-14628

if (empty($CFG->noemailever) and !empty($CFG->emailconnectionerrorsto)) {
mail($CFG->emailconnectionerrorsto,
'WARNING: Database connection error: '.$CFG->wwwroot,
Expand Down

0 comments on commit 211c689

Please sign in to comment.