diff options
Diffstat (limited to 'OpenSim/Framework/Data.MSSQL/MSSQLManager.cs')
-rw-r--r-- | OpenSim/Framework/Data.MSSQL/MSSQLManager.cs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/OpenSim/Framework/Data.MSSQL/MSSQLManager.cs b/OpenSim/Framework/Data.MSSQL/MSSQLManager.cs index 3a70909..e54cde1 100644 --- a/OpenSim/Framework/Data.MSSQL/MSSQLManager.cs +++ b/OpenSim/Framework/Data.MSSQL/MSSQLManager.cs | |||
@@ -42,6 +42,8 @@ namespace OpenSim.Framework.Data.MSSQL | |||
42 | /// </summary> | 42 | /// </summary> |
43 | internal class MSSQLManager | 43 | internal class MSSQLManager |
44 | { | 44 | { |
45 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
46 | |||
45 | /// <summary> | 47 | /// <summary> |
46 | /// The database connection object | 48 | /// The database connection object |
47 | /// </summary> | 49 | /// </summary> |
@@ -92,7 +94,7 @@ namespace OpenSim.Framework.Data.MSSQL | |||
92 | } | 94 | } |
93 | catch (Exception) | 95 | catch (Exception) |
94 | { | 96 | { |
95 | MainLog.Instance.Verbose("DATASTORE", "MSSQL Database doesn't exist... creating"); | 97 | m_log.Info("[DATASTORE]: MSSQL Database doesn't exist... creating"); |
96 | InitDB(conn); | 98 | InitDB(conn); |
97 | } | 99 | } |
98 | cmd = Query("select top 1 webLoginKey from users", new Dictionary<string, string>()); | 100 | cmd = Query("select top 1 webLoginKey from users", new Dictionary<string, string>()); |
@@ -260,7 +262,7 @@ namespace OpenSim.Framework.Data.MSSQL | |||
260 | } | 262 | } |
261 | catch (Exception e) | 263 | catch (Exception e) |
262 | { | 264 | { |
263 | MainLog.Instance.Error("Unable to reconnect to database " + e.ToString()); | 265 | m_log.Error("Unable to reconnect to database " + e.ToString()); |
264 | } | 266 | } |
265 | } | 267 | } |
266 | } | 268 | } |
@@ -529,7 +531,7 @@ namespace OpenSim.Framework.Data.MSSQL | |||
529 | } | 531 | } |
530 | catch (Exception e) | 532 | catch (Exception e) |
531 | { | 533 | { |
532 | MainLog.Instance.Error("MSSQLManager : " + e.ToString()); | 534 | m_log.Error("MSSQLManager : " + e.ToString()); |
533 | } | 535 | } |
534 | 536 | ||
535 | return returnval; | 537 | return returnval; |
@@ -573,7 +575,7 @@ namespace OpenSim.Framework.Data.MSSQL | |||
573 | } | 575 | } |
574 | catch (Exception e) | 576 | catch (Exception e) |
575 | { | 577 | { |
576 | MainLog.Instance.Error(e.ToString()); | 578 | m_log.Error(e.ToString()); |
577 | return false; | 579 | return false; |
578 | } | 580 | } |
579 | 581 | ||
@@ -667,7 +669,7 @@ namespace OpenSim.Framework.Data.MSSQL | |||
667 | } | 669 | } |
668 | catch (Exception e) | 670 | catch (Exception e) |
669 | { | 671 | { |
670 | MainLog.Instance.Error(e.ToString()); | 672 | m_log.Error(e.ToString()); |
671 | return false; | 673 | return false; |
672 | } | 674 | } |
673 | 675 | ||
@@ -688,7 +690,7 @@ namespace OpenSim.Framework.Data.MSSQL | |||
688 | } | 690 | } |
689 | catch (Exception e) | 691 | catch (Exception e) |
690 | { | 692 | { |
691 | MainLog.Instance.Error("Unable to execute query " + e.ToString()); | 693 | m_log.Error("Unable to execute query " + e.ToString()); |
692 | } | 694 | } |
693 | } | 695 | } |
694 | 696 | ||
@@ -721,7 +723,7 @@ namespace OpenSim.Framework.Data.MSSQL | |||
721 | } | 723 | } |
722 | catch (Exception e) | 724 | catch (Exception e) |
723 | { | 725 | { |
724 | MainLog.Instance.Error(e.ToString()); | 726 | m_log.Error(e.ToString()); |
725 | } | 727 | } |
726 | } | 728 | } |
727 | tables.Close(); | 729 | tables.Close(); |