vogelor
2008-12-12 2534b97109ca3a3c288ab241033b7e376ff2bc84
Improved the replication error messages
1 files modified
6 ■■■■ changed files
server/lib/classes/modules.inc.php 6 ●●●● patch | view | raw | blame | history
server/lib/classes/modules.inc.php
@@ -109,7 +109,7 @@
                    $app->db->query($sql);
                    if($app->db->errorNumber > 0) {
                        $replication_error = true;
                        $app->log("Replication failed. Error: ".$app->db->errorMessage,LOGLEVEL_ERROR);
                        $app->log("Replication failed. Error: (" . $d[dbtable] . ") " . $app->db->errorMessage,LOGLEVEL_ERROR);
                    }
                    $app->log("Replicated from master: ".$sql,LOGLEVEL_DEBUG);
                }
@@ -125,7 +125,7 @@
                    $app->db->query($sql);
                    if($app->db->errorNumber > 0) {
                        $replication_error = true;
                        $app->log("Replication failed. Error: ".$app->db->errorMessage,LOGLEVEL_ERROR);
                        $app->log("Replication failed. Error: (" . $d[dbtable] . ") " . $app->db->errorMessage,LOGLEVEL_ERROR);
                    }
                    $app->log("Replicated from master: ".$sql,LOGLEVEL_DEBUG);
                }
@@ -137,7 +137,7 @@
                    $app->db->query($sql);
                    if($app->db->errorNumber > 0) {
                        $replication_error = true;
                        $app->log("Replication failed. Error: ".$app->db->errorMessage,LOGLEVEL_ERROR);
                        $app->log("Replication failed. Error: (" . $d[dbtable] . ") " . $app->db->errorMessage,LOGLEVEL_ERROR);
                    }
                    $app->log("Replicated from master: ".$sql,LOGLEVEL_DEBUG);
                }