summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/db.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/db.php b/lib/db.php
index dc9e3392d0a..9e6835adc6f 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -246,6 +246,7 @@ class OC_DB {
$entry = 'DB Error: "'.$result->getMessage().'"<br />';
$entry .= 'Offending command was: '.$query.'<br />';
OC_Log::write('core',$entry,OC_Log::FATAL);
+ error_log('DB error: '.$entry);
die( $entry );
}
}else{
@@ -255,6 +256,7 @@ class OC_DB {
$entry = 'DB Error: "'.$e->getMessage().'"<br />';
$entry .= 'Offending command was: '.$query.'<br />';
OC_Log::write('core',$entry,OC_Log::FATAL);
+ error_log('DB error: '.$entry);
die( $entry );
}
$result=new PDOStatementWrapper($result);