@@ -109,7 +109,7 @@ function processDatalog() {
109109 $ app ->db ->query ($ sql );
110110 if ($ app ->db ->errorNumber > 0 ) {
111111 $ replication_error = true ;
112- $ app ->log ("Replication failed. Error: ( " . $ d [dbtable] . ") " . $ app ->db ->errorMessage ,LOGLEVEL_ERROR );
112+ $ app ->log ("Replication failed. Error: ( " . $ d [dbtable] . ") " . $ app ->db ->errorMessage . " # SQL: " . $ sql ,LOGLEVEL_ERROR );
113113 }
114114 $ app ->log ("Replicated from master: " .$ sql ,LOGLEVEL_DEBUG );
115115 }
@@ -125,7 +125,7 @@ function processDatalog() {
125125 $ app ->db ->query ($ sql );
126126 if ($ app ->db ->errorNumber > 0 ) {
127127 $ replication_error = true ;
128- $ app ->log ("Replication failed. Error: ( " . $ d [dbtable] . ") " . $ app ->db ->errorMessage ,LOGLEVEL_ERROR );
128+ $ app ->log ("Replication failed. Error: ( " . $ d [dbtable] . ") " . $ app ->db ->errorMessage . " # SQL: " . $ sql ,LOGLEVEL_ERROR );
129129 }
130130 $ app ->log ("Replicated from master: " .$ sql ,LOGLEVEL_DEBUG );
131131 }
@@ -137,7 +137,7 @@ function processDatalog() {
137137 $ app ->db ->query ($ sql );
138138 if ($ app ->db ->errorNumber > 0 ) {
139139 $ replication_error = true ;
140- $ app ->log ("Replication failed. Error: ( " . $ d [dbtable] . ") " . $ app ->db ->errorMessage ,LOGLEVEL_ERROR );
140+ $ app ->log ("Replication failed. Error: ( " . $ d [dbtable] . ") " . $ app ->db ->errorMessage . " # SQL: " . $ sql ,LOGLEVEL_ERROR );
141141 }
142142 $ app ->log ("Replicated from master: " .$ sql ,LOGLEVEL_DEBUG );
143143 }
0 commit comments