aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.MySQL/MySQLGridData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Data.MySQL/MySQLGridData.cs')
-rw-r--r--OpenSim/Framework/Data.MySQL/MySQLGridData.cs14
1 files changed, 8 insertions, 6 deletions
diff --git a/OpenSim/Framework/Data.MySQL/MySQLGridData.cs b/OpenSim/Framework/Data.MySQL/MySQLGridData.cs
index c8c4ab0..d62c286 100644
--- a/OpenSim/Framework/Data.MySQL/MySQLGridData.cs
+++ b/OpenSim/Framework/Data.MySQL/MySQLGridData.cs
@@ -42,6 +42,8 @@ namespace OpenSim.Framework.Data.MySQL
42 /// </summary> 42 /// </summary>
43 public class MySQLGridData : IGridData 43 public class MySQLGridData : IGridData
44 { 44 {
45 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
46
45 /// <summary> 47 /// <summary>
46 /// MySQL Database Manager 48 /// MySQL Database Manager
47 /// </summary> 49 /// </summary>
@@ -168,7 +170,7 @@ namespace OpenSim.Framework.Data.MySQL
168 catch (Exception e) 170 catch (Exception e)
169 { 171 {
170 database.Reconnect(); 172 database.Reconnect();
171 MainLog.Instance.Error(e.ToString()); 173 m_log.Error(e.ToString());
172 return null; 174 return null;
173 } 175 }
174 } 176 }
@@ -200,7 +202,7 @@ namespace OpenSim.Framework.Data.MySQL
200 catch (Exception e) 202 catch (Exception e)
201 { 203 {
202 database.Reconnect(); 204 database.Reconnect();
203 MainLog.Instance.Error(e.ToString()); 205 m_log.Error(e.ToString());
204 return null; 206 return null;
205 } 207 }
206 } 208 }
@@ -247,7 +249,7 @@ namespace OpenSim.Framework.Data.MySQL
247 catch (Exception e) 249 catch (Exception e)
248 { 250 {
249 database.Reconnect(); 251 database.Reconnect();
250 MainLog.Instance.Error(e.ToString()); 252 m_log.Error(e.ToString());
251 return returnlist; 253 return returnlist;
252 } 254 }
253 } 255 }
@@ -282,7 +284,7 @@ namespace OpenSim.Framework.Data.MySQL
282 catch (Exception e) 284 catch (Exception e)
283 { 285 {
284 database.Reconnect(); 286 database.Reconnect();
285 MainLog.Instance.Error(e.ToString()); 287 m_log.Error(e.ToString());
286 return returnlist; 288 return returnlist;
287 } 289 }
288 } 290 }
@@ -316,7 +318,7 @@ namespace OpenSim.Framework.Data.MySQL
316 catch (Exception e) 318 catch (Exception e)
317 { 319 {
318 database.Reconnect(); 320 database.Reconnect();
319 MainLog.Instance.Error(e.ToString()); 321 m_log.Error(e.ToString());
320 return null; 322 return null;
321 } 323 }
322 } 324 }
@@ -405,7 +407,7 @@ namespace OpenSim.Framework.Data.MySQL
405 catch (Exception e) 407 catch (Exception e)
406 { 408 {
407 database.Reconnect(); 409 database.Reconnect();
408 MainLog.Instance.Error(e.ToString()); 410 m_log.Error(e.ToString());
409 return null; 411 return null;
410 } 412 }
411 } 413 }