tbrehm
2008-12-17 a04614c8809ca947d50a1bc1f0a1c2c33896c96b
Made Logging for replication errors more verbose.
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: (" . $d[dbtable] . ") " . $app->db->errorMessage,LOGLEVEL_ERROR);
                        $app->log("Replication failed. Error: (" . $d[dbtable] . ") " . $app->db->errorMessage . " # SQL: " . $sql,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: (" . $d[dbtable] . ") " . $app->db->errorMessage,LOGLEVEL_ERROR);
                        $app->log("Replication failed. Error: (" . $d[dbtable] . ") " . $app->db->errorMessage . " # SQL: " . $sql,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: (" . $d[dbtable] . ") " . $app->db->errorMessage,LOGLEVEL_ERROR);
                        $app->log("Replication failed. Error: (" . $d[dbtable] . ") " . $app->db->errorMessage . " # SQL: " . $sql,LOGLEVEL_ERROR);
                    }
                    $app->log("Replicated from master: ".$sql,LOGLEVEL_DEBUG);
                }