From 9324c3f110d70d44ef91c18e570cffc59d067683 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 15 Oct 2008 16:35:27 +0000 Subject: * refactor: Move error logging from GetUserDetails up to callers, since there are some circumstances in which not finding a user is not an error --- OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs index cf6a74d..45102d8 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs @@ -75,6 +75,7 @@ namespace OpenSim.Framework.Communications.Cache { if (userID == UUID.Zero) return; + m_log.DebugFormat("[USER CACHE]: Adding user profile for {0}", userID); GetUserDetails(userID); } @@ -133,8 +134,8 @@ namespace OpenSim.Framework.Communications.Cache } /// - /// Get the details of the given user. A caller should try this method first if it isn't sure that - /// a user profile exists for the given user. + /// Get cached details of the given user. If the user isn't in cache then the user is requested from the + /// profile service. /// /// /// null if no user details are found @@ -160,7 +161,6 @@ namespace OpenSim.Framework.Communications.Cache } else { - m_log.ErrorFormat("[USER CACHE]: User profile for user {0} not found.", userID); return null; } } -- cgit v1.1