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/Communications/Cache/UserProfileCacheService.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/Communications/Cache/UserProfileCacheService.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs index 14670fd..79c0c86 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | |||
@@ -25,6 +25,8 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | |||
29 | using System; | ||
28 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
29 | using libsecondlife; | 31 | using libsecondlife; |
30 | using OpenSim.Framework.Console; | 32 | using OpenSim.Framework.Console; |
@@ -33,6 +35,8 @@ namespace OpenSim.Framework.Communications.Cache | |||
33 | { | 35 | { |
34 | public class UserProfileCacheService | 36 | public class UserProfileCacheService |
35 | { | 37 | { |
38 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
39 | |||
36 | // Fields | 40 | // Fields |
37 | private readonly CommunicationsManager m_parent; | 41 | private readonly CommunicationsManager m_parent; |
38 | private readonly Dictionary<LLUUID, CachedUserInfo> m_userProfiles = new Dictionary<LLUUID, CachedUserInfo>(); | 42 | private readonly Dictionary<LLUUID, CachedUserInfo> m_userProfiles = new Dictionary<LLUUID, CachedUserInfo>(); |
@@ -69,7 +73,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
69 | } | 73 | } |
70 | else | 74 | else |
71 | { | 75 | { |
72 | MainLog.Instance.Error("USERCACHE", "User profile for user {0} not found", userID); | 76 | m_log.Error(String.Format("[USERCACHE]: User profile for user {0} not found", userID)); |
73 | } | 77 | } |
74 | } | 78 | } |
75 | } | 79 | } |
@@ -229,28 +233,28 @@ namespace OpenSim.Framework.Communications.Cache | |||
229 | } | 233 | } |
230 | else | 234 | else |
231 | { | 235 | { |
232 | MainLog.Instance.Error( | 236 | m_log.Error( |
233 | "INVENTORYCACHE", "Could not find root folder for user {0}", remoteClient.Name); | 237 | String.Format("[INVENTORYCACHE]: Could not find root folder for user {0}", remoteClient.Name)); |
234 | 238 | ||
235 | return; | 239 | return; |
236 | } | 240 | } |
237 | } | 241 | } |
238 | else | 242 | else |
239 | { | 243 | { |
240 | MainLog.Instance.Error( | 244 | m_log.Error( |
241 | "INVENTORYCACHE", | 245 | String.Format("[INVENTORYCACHE]: " + |
242 | "Could not find user profile for {0} for folder {1}", | 246 | "Could not find user profile for {0} for folder {1}", |
243 | remoteClient.Name, folderID); | 247 | remoteClient.Name, folderID)); |
244 | 248 | ||
245 | return; | 249 | return; |
246 | } | 250 | } |
247 | 251 | ||
248 | // If we've reached this point then we couldn't find the folder, even though the client thinks | 252 | // If we've reached this point then we couldn't find the folder, even though the client thinks |
249 | // it exists | 253 | // it exists |
250 | MainLog.Instance.Error( | 254 | m_log.Error( |
251 | "INVENTORYCACHE", | 255 | String.Format("[INVENTORYCACHE]: " + |
252 | "Could not find folder {0} for user {1}", | 256 | "Could not find folder {0} for user {1}", |
253 | folderID, remoteClient.Name); | 257 | folderID, remoteClient.Name)); |
254 | } | 258 | } |
255 | 259 | ||
256 | public void HandlePurgeInventoryDescendents(IClientAPI remoteClient, LLUUID folderID) | 260 | public void HandlePurgeInventoryDescendents(IClientAPI remoteClient, LLUUID folderID) |