and log mode reconnect added.

zircon^2
Adam Frisby 2007-05-30 02:39:10 +00:00
parent b0de1b93f9
commit c7e8318038
1 changed files with 8 additions and 1 deletions

View File

@ -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()