summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-09-08 17:40:41 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-09-08 17:40:41 +0000
commita7372a9d1920b1353d560aba57733184045a0b44 (patch)
treea1e9c2bd971e7efb75aa9f354defa4ffdb6a5227 /roundcubemail/program/include
parent8075033c8f9dae8e12b3e05816c80dd9cdde81b2 (diff)
- Add semicolon at the end of SQL queries in log (#1486957)
git-svn-id: https://svn.roundcube.net/trunk@3947 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
-rw-r--r--roundcubemail/program/include/rcube_mdb2.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_mdb2.php b/roundcubemail/program/include/rcube_mdb2.php
index 1aac65100..cecb7ab65 100644
--- a/roundcubemail/program/include/rcube_mdb2.php
+++ b/roundcubemail/program/include/rcube_mdb2.php
@@ -725,7 +725,8 @@ class rcube_mdb2
function mdb2_debug_handler(&$db, $scope, $message, $context = array())
{
if ($scope != 'prepare') {
- $debug_output = $scope . '('.$db->db_index.'): ' . $message;
+ $debug_output = sprintf('%s(%d): %s;',
+ $scope, $db->db_index, rtrim($message, ';'));
write_log('sql', $debug_output);
}
}