File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -152,12 +152,14 @@ function processDatalog() {
152152 $ app ->db ->errorNumber = 0 ;
153153 $ app ->db ->errorMessage = '' ;
154154 $ app ->db ->query ($ sql , true , $ params );
155- unset($ params );
156155 if ($ app ->db ->errorNumber > 0 ) {
157156 $ replication_error = true ;
158157 $ app ->log ("Replication failed. Error: ( " . $ d ['dbtable ' ] . ") in MySQL server: ( " .$ app ->db ->dbHost .") " . $ app ->db ->errorMessage . " # SQL: " . $ sql , LOGLEVEL_ERROR );
159158 }
160- $ app ->log ('Replicated from master: ' .$ sql , LOGLEVEL_DEBUG );
159+ $ log = $ app ->db ->_build_query_string ($ sql , true , $ params );
160+ $ app ->log ('Replicated from master: ' .$ log , LOGLEVEL_DEBUG );
161+ unset($ params );
162+ unset($ log );
161163 }
162164
163165 if ($ d ['action ' ] == 'd ' ) {
@@ -169,7 +171,9 @@ function processDatalog() {
169171 $ replication_error = true ;
170172 $ app ->log ("Replication failed. Error: ( " . $ d [dbtable] . ") " . $ app ->db ->errorMessage . " # SQL: " . $ sql , LOGLEVEL_ERROR );
171173 }
172- $ app ->log ('Replicated from master: ' .$ sql , LOGLEVEL_DEBUG );
174+ $ log = $ app ->db ->_build_query_string ($ sql , $ d ['dbtable ' ], $ idx [0 ], $ idx [1 ]);
175+ $ app ->log ('Replicated from master: ' .$ log , LOGLEVEL_DEBUG );
176+ unset($ log );
173177 }
174178
175179
You can’t perform that action at this time.
0 commit comments