mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
perhaps improve logging - see : https://github.com/postfixadmin/postfixadmin/issues/364
This commit is contained in:
1 parent
62f2bd32ef
commit
ca24ff8300
1 file changed
+1
@@ -329,6 +329,7 @@ function db_query_parsed($sql, $ignore_errors = 0, $attach_mysql = "") {
|
||||
try {
|
||||
$result = db_execute($query, array(), true);
|
||||
} catch (PDOException $e) {
|
||||
error_log("Exception running PostfixAdmin query: $query " . $e);
|
||||
if ($debug) {
|
||||
echo_out("<div style='color:#f00'>" . $e->getMessage() . "</div>");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user