diff options
author | Adam Frisby | 2007-05-30 02:39:10 +0000 |
---|---|---|
committer | Adam Frisby | 2007-05-30 02:39:10 +0000 |
commit | c7e831803826281cb77a2c0c52c3fd6e71b37477 (patch) | |
tree | d34ad3d8cfd6d17b839cad120b13dcbe1dc948cf /OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLLogData.cs | |
parent | * Added reconnect support for MySQL Data interfaces if they time out. (Grid/U... (diff) | |
download | opensim-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.
Diffstat (limited to 'OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLLogData.cs')
-rw-r--r-- | OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLLogData.cs | 9 |
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() |