From c7e831803826281cb77a2c0c52c3fd6e71b37477 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Wed, 30 May 2007 02:39:10 +0000 Subject: and log mode reconnect added. --- OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLLogData.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 public void saveLog(string serverDaemon, string target, string methodCall, string arguments, int priority, string logMessage) { - database.insertLogRow(serverDaemon, target, methodCall, arguments, priority, logMessage); + try + { + database.insertLogRow(serverDaemon, target, methodCall, arguments, priority, logMessage); + } + catch (Exception e) + { + database.Reconnect(); + } } public string getName() -- cgit v1.1