aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAdam Frisby2007-05-30 02:39:10 +0000
committerAdam Frisby2007-05-30 02:39:10 +0000
commitc7e831803826281cb77a2c0c52c3fd6e71b37477 (patch)
treed34ad3d8cfd6d17b839cad120b13dcbe1dc948cf
parent* Added reconnect support for MySQL Data interfaces if they time out. (Grid/U... (diff)
downloadopensim-SC_OLD-c7e831803826281cb77a2c0c52c3fd6e71b37477.zip
opensim-SC_OLD-c7e831803826281cb77a2c0c52c3fd6e71b37477.tar.gz
opensim-SC_OLD-c7e831803826281cb77a2c0c52c3fd6e71b37477.tar.bz2
opensim-SC_OLD-c7e831803826281cb77a2c0c52c3fd6e71b37477.tar.xz
and log mode reconnect added.
-rw-r--r--OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLLogData.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLLogData.cs b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLLogData.cs
index 8fff793..c2f9653 100644
--- a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLLogData.cs
+++ b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLLogData.cs
@@ -23,7 +23,14 @@ namespace OpenGrid.Framework.Data.MySQL
23 23
24 public void saveLog(string serverDaemon, string target, string methodCall, string arguments, int priority, string logMessage) 24 public void saveLog(string serverDaemon, string target, string methodCall, string arguments, int priority, string logMessage)
25 { 25 {
26 database.insertLogRow(serverDaemon, target, methodCall, arguments, priority, logMessage); 26 try
27 {
28 database.insertLogRow(serverDaemon, target, methodCall, arguments, priority, logMessage);
29 }
30 catch (Exception e)
31 {
32 database.Reconnect();
33 }
27 } 34 }
28 35
29 public string getName() 36 public string getName()