From 2534b97109ca3a3c288ab241033b7e376ff2bc84 Mon Sep 17 00:00:00 2001
From: vogelor <vogelor@ispconfig3>
Date: Fri, 12 Dec 2008 10:11:35 -0500
Subject: [PATCH] Improved the replication error messages

---
 server/lib/classes/modules.inc.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/lib/classes/modules.inc.php b/server/lib/classes/modules.inc.php
index 4ba2212..4684357 100644
--- a/server/lib/classes/modules.inc.php
+++ b/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);
 				}

--
Gitblit v1.9.1