diff options
author | alecpl <alec@alec.pl> | 2010-09-08 17:40:41 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-09-08 17:40:41 +0000 |
commit | 860678e333dc50fb8746d1adc50b6601e8639e3c (patch) | |
tree | 4034d177235bcee58d0c2580733df50d63e50b3b /program/include | |
parent | 2aa2b332f6e216ceeabc36ef6b942c40d91bda5a (diff) |
- Add semicolon at the end of SQL queries in log (#1486957)
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/rcube_mdb2.php | 3 |
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); } } |