summaryrefslogtreecommitdiff
path: root/program/include/rcube_mdb2.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-09-08 17:40:41 +0000
committeralecpl <alec@alec.pl>2010-09-08 17:40:41 +0000
commit860678e333dc50fb8746d1adc50b6601e8639e3c (patch)
tree4034d177235bcee58d0c2580733df50d63e50b3b /program/include/rcube_mdb2.php
parent2aa2b332f6e216ceeabc36ef6b942c40d91bda5a (diff)
- Add semicolon at the end of SQL queries in log (#1486957)
Diffstat (limited to 'program/include/rcube_mdb2.php')
-rw-r--r--program/include/rcube_mdb2.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php
index 1aac65100..cecb7ab65 100644
--- a/program/include/rcube_mdb2.php
+++ b/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);
}
}