Commit cafb0bd1 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Make the caught ADODB exceptions be logged at a debug level, which is a bit

nicer since they could be caught perfectly OK later down the track (if
they're not, the default exception handler will bitch and scream).
parent 3c356463
......@@ -53,7 +53,7 @@ function execute_sql($command) {
$result = $db->Execute($command);
}
catch (ADODB_Exception $e) {
log_warn($e->getMessage() . "Command was: $command");
log_dbg($e->getMessage() . "Command was: $command");
$db->debug = $olddebug;
throw new DatalibException('Could not execute command: ' . $command);
}
......@@ -357,7 +357,7 @@ function get_recordset_sql($sql, $values=null, $limitfrom=null, $limitnum=null)
}
catch (ADODB_Exception $e) {
$message = 'Failed to get a recordset: ' . $e->getMessage() . "Command was: $sql";
log_warn($message);
log_dbg($message);
throw new DatalibException($message);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment