From: fmarier Date: Wed, 7 May 2008 04:40:18 +0000 (+0000) Subject: Printing ADODB error to the web server error log (MDL-14628) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=211c6890c52b73c1a82c2d54620ad935c26d2e39;p=moodle.git Printing ADODB error to the web server error log (MDL-14628) Merged from MOODLE_18_STABLE and MOODLE_19_STABLE --- diff --git a/lib/setup.php b/lib/setup.php index 05bb3812de..1dfa338ecb 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -155,6 +155,8 @@ global $HTTPSPAGEREQUIRED; echo ''; echo ''; + 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,