aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.MSSQL/MSSQLUserData.cs
diff options
context:
space:
mode:
authorJeff Ames2008-02-05 19:44:27 +0000
committerJeff Ames2008-02-05 19:44:27 +0000
commit6ed5283bc06a62f38eb517e67b975832b603bf61 (patch)
treee5f635018789b73a99ddeca0883a68368fa5eece /OpenSim/Framework/Data.MSSQL/MSSQLUserData.cs
parentCut down on the number of packets sent during terraforming. Terraforming shou... (diff)
downloadopensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.zip
opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.gz
opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.bz2
opensim-SC_OLD-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/MSSQLUserData.cs')
-rw-r--r--OpenSim/Framework/Data.MSSQL/MSSQLUserData.cs26
1 files changed, 14 insertions, 12 deletions
diff --git a/OpenSim/Framework/Data.MSSQL/MSSQLUserData.cs b/OpenSim/Framework/Data.MSSQL/MSSQLUserData.cs
index aa0526c..ed9929c 100644
--- a/OpenSim/Framework/Data.MSSQL/MSSQLUserData.cs
+++ b/OpenSim/Framework/Data.MSSQL/MSSQLUserData.cs
@@ -39,6 +39,8 @@ namespace OpenSim.Framework.Data.MSSQL
39 /// </summary> 39 /// </summary>
40 internal class MSSQLUserData : IUserData 40 internal class MSSQLUserData : IUserData
41 { 41 {
42 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
43
42 /// <summary> 44 /// <summary>
43 /// Database manager for MySQL 45 /// Database manager for MySQL
44 /// </summary> 46 /// </summary>
@@ -94,7 +96,7 @@ namespace OpenSim.Framework.Data.MSSQL
94 catch (Exception e) 96 catch (Exception e)
95 { 97 {
96 database.Reconnect(); 98 database.Reconnect();
97 MainLog.Instance.Error(e.ToString()); 99 m_log.Error(e.ToString());
98 return null; 100 return null;
99 } 101 }
100 } 102 }
@@ -103,22 +105,22 @@ namespace OpenSim.Framework.Data.MSSQL
103 105
104 public void AddNewUserFriend(LLUUID friendlistowner, LLUUID friend, uint perms) 106 public void AddNewUserFriend(LLUUID friendlistowner, LLUUID friend, uint perms)
105 { 107 {
106 MainLog.Instance.Verbose("FRIEND", "Stub AddNewUserFriend called"); 108 m_log.Info("[FRIEND]: Stub AddNewUserFriend called");
107 } 109 }
108 110
109 public void RemoveUserFriend(LLUUID friendlistowner, LLUUID friend) 111 public void RemoveUserFriend(LLUUID friendlistowner, LLUUID friend)
110 { 112 {
111 MainLog.Instance.Verbose("FRIEND", "Stub RemoveUserFriend called"); 113 m_log.Info("[FRIEND]: Stub RemoveUserFriend called");
112 } 114 }
113 public void UpdateUserFriendPerms(LLUUID friendlistowner, LLUUID friend, uint perms) 115 public void UpdateUserFriendPerms(LLUUID friendlistowner, LLUUID friend, uint perms)
114 { 116 {
115 MainLog.Instance.Verbose("FRIEND", "Stub UpdateUserFriendPerms called"); 117 m_log.Info("[FRIEND]: Stub UpdateUserFriendPerms called");
116 } 118 }
117 119
118 120
119 public List<FriendListItem> GetUserFriendList(LLUUID friendlistowner) 121 public List<FriendListItem> GetUserFriendList(LLUUID friendlistowner)
120 { 122 {
121 MainLog.Instance.Verbose("FRIEND", "Stub GetUserFriendList called"); 123 m_log.Info("[FRIEND]: Stub GetUserFriendList called");
122 return new List<FriendListItem>(); 124 return new List<FriendListItem>();
123 } 125 }
124 126
@@ -126,7 +128,7 @@ namespace OpenSim.Framework.Data.MSSQL
126 128
127 public void UpdateUserCurrentRegion(LLUUID avatarid, LLUUID regionuuid) 129 public void UpdateUserCurrentRegion(LLUUID avatarid, LLUUID regionuuid)
128 { 130 {
129 MainLog.Instance.Verbose("USER", "Stub UpdateUserCUrrentRegion called"); 131 m_log.Info("[USER]: Stub UpdateUserCUrrentRegion called");
130 } 132 }
131 133
132 134
@@ -168,7 +170,7 @@ namespace OpenSim.Framework.Data.MSSQL
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 returnlist; 174 return returnlist;
173 } 175 }
174 } 176 }
@@ -204,7 +206,7 @@ namespace OpenSim.Framework.Data.MSSQL
204 catch (Exception e) 206 catch (Exception e)
205 { 207 {
206 database.Reconnect(); 208 database.Reconnect();
207 MainLog.Instance.Error(e.ToString()); 209 m_log.Error(e.ToString());
208 return returnlist; 210 return returnlist;
209 } 211 }
210 } 212 }
@@ -235,7 +237,7 @@ namespace OpenSim.Framework.Data.MSSQL
235 catch (Exception e) 237 catch (Exception e)
236 { 238 {
237 database.Reconnect(); 239 database.Reconnect();
238 MainLog.Instance.Error(e.ToString()); 240 m_log.Error(e.ToString());
239 return null; 241 return null;
240 } 242 }
241 } 243 }
@@ -290,7 +292,7 @@ namespace OpenSim.Framework.Data.MSSQL
290 catch (Exception e) 292 catch (Exception e)
291 { 293 {
292 database.Reconnect(); 294 database.Reconnect();
293 MainLog.Instance.Error(e.ToString()); 295 m_log.Error(e.ToString());
294 return null; 296 return null;
295 } 297 }
296 } 298 }
@@ -324,7 +326,7 @@ namespace OpenSim.Framework.Data.MSSQL
324 catch (Exception e) 326 catch (Exception e)
325 { 327 {
326 database.Reconnect(); 328 database.Reconnect();
327 MainLog.Instance.Error(e.ToString()); 329 m_log.Error(e.ToString());
328 } 330 }
329 } 331 }
330 332
@@ -426,7 +428,7 @@ namespace OpenSim.Framework.Data.MSSQL
426 } 428 }
427 catch (Exception e) 429 catch (Exception e)
428 { 430 {
429 MainLog.Instance.Error(e.ToString()); 431 m_log.Error(e.ToString());
430 } 432 }
431 return false; 433 return false;
432 } 434 }