diff options
author | Jeff Ames | 2008-02-05 19:44:27 +0000 |
---|---|---|
committer | Jeff Ames | 2008-02-05 19:44:27 +0000 |
commit | 6ed5283bc06a62f38eb517e67b975832b603bf61 (patch) | |
tree | e5f635018789b73a99ddeca0883a68368fa5eece /OpenSim/Framework/Data.MSSQL/MSSQLGridData.cs | |
parent | Cut down on the number of packets sent during terraforming. Terraforming shou... (diff) | |
download | opensim-SC-6ed5283bc06a62f38eb517e67b975832b603bf61.zip opensim-SC-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.gz opensim-SC-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.bz2 opensim-SC-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.xz |
Converted logging to use log4net.
Changed LogBase to ConsoleBase, which handles console I/O.
This is mostly an in-place conversion, so lots of refactoring can still be done.
Diffstat (limited to 'OpenSim/Framework/Data.MSSQL/MSSQLGridData.cs')
-rw-r--r-- | OpenSim/Framework/Data.MSSQL/MSSQLGridData.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Framework/Data.MSSQL/MSSQLGridData.cs b/OpenSim/Framework/Data.MSSQL/MSSQLGridData.cs index 7d228e6..28eec3e 100644 --- a/OpenSim/Framework/Data.MSSQL/MSSQLGridData.cs +++ b/OpenSim/Framework/Data.MSSQL/MSSQLGridData.cs | |||
@@ -40,6 +40,8 @@ namespace OpenSim.Framework.Data.MSSQL | |||
40 | /// </summary> | 40 | /// </summary> |
41 | public class SqlGridData : IGridData | 41 | public class SqlGridData : IGridData |
42 | { | 42 | { |
43 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
44 | |||
43 | /// <summary> | 45 | /// <summary> |
44 | /// Database manager | 46 | /// Database manager |
45 | /// </summary> | 47 | /// </summary> |
@@ -172,7 +174,7 @@ namespace OpenSim.Framework.Data.MSSQL | |||
172 | catch (Exception e) | 174 | catch (Exception e) |
173 | { | 175 | { |
174 | database.Reconnect(); | 176 | database.Reconnect(); |
175 | MainLog.Instance.Error(e.ToString()); | 177 | m_log.Error(e.ToString()); |
176 | return returnlist; | 178 | return returnlist; |
177 | } | 179 | } |
178 | } | 180 | } |
@@ -208,7 +210,7 @@ namespace OpenSim.Framework.Data.MSSQL | |||
208 | catch (Exception e) | 210 | catch (Exception e) |
209 | { | 211 | { |
210 | database.Reconnect(); | 212 | database.Reconnect(); |
211 | MainLog.Instance.Error(e.ToString()); | 213 | m_log.Error(e.ToString()); |
212 | return returnlist; | 214 | return returnlist; |
213 | } | 215 | } |
214 | } | 216 | } |