diff options
author | Justin Clarke Casey | 2008-10-15 16:35:27 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-10-15 16:35:27 +0000 |
commit | 9324c3f110d70d44ef91c18e570cffc59d067683 (patch) | |
tree | 6ce60aa08beca59e9e985868f7435ed89cabf59d /OpenSim/Framework | |
parent | * minor: oops, small textual tweak (diff) | |
download | opensim-SC_OLD-9324c3f110d70d44ef91c18e570cffc59d067683.zip opensim-SC_OLD-9324c3f110d70d44ef91c18e570cffc59d067683.tar.gz opensim-SC_OLD-9324c3f110d70d44ef91c18e570cffc59d067683.tar.bz2 opensim-SC_OLD-9324c3f110d70d44ef91c18e570cffc59d067683.tar.xz |
* refactor: Move error logging from GetUserDetails up to callers, since there are some circumstances in which not finding a user is not an error
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | 6 |
1 files changed, 3 insertions, 3 deletions
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 | |||
75 | { | 75 | { |
76 | if (userID == UUID.Zero) | 76 | if (userID == UUID.Zero) |
77 | return; | 77 | return; |
78 | |||
78 | m_log.DebugFormat("[USER CACHE]: Adding user profile for {0}", userID); | 79 | m_log.DebugFormat("[USER CACHE]: Adding user profile for {0}", userID); |
79 | GetUserDetails(userID); | 80 | GetUserDetails(userID); |
80 | } | 81 | } |
@@ -133,8 +134,8 @@ namespace OpenSim.Framework.Communications.Cache | |||
133 | } | 134 | } |
134 | 135 | ||
135 | /// <summary> | 136 | /// <summary> |
136 | /// Get the details of the given user. A caller should try this method first if it isn't sure that | 137 | /// Get cached details of the given user. If the user isn't in cache then the user is requested from the |
137 | /// a user profile exists for the given user. | 138 | /// profile service. |
138 | /// </summary> | 139 | /// </summary> |
139 | /// <param name="userID"></param> | 140 | /// <param name="userID"></param> |
140 | /// <returns>null if no user details are found</returns> | 141 | /// <returns>null if no user details are found</returns> |
@@ -160,7 +161,6 @@ namespace OpenSim.Framework.Communications.Cache | |||
160 | } | 161 | } |
161 | else | 162 | else |
162 | { | 163 | { |
163 | m_log.ErrorFormat("[USER CACHE]: User profile for user {0} not found.", userID); | ||
164 | return null; | 164 | return null; |
165 | } | 165 | } |
166 | } | 166 | } |