aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-04-17 19:11:03 +0000
committerJustin Clarke Casey2009-04-17 19:11:03 +0000
commitbd1b478f2c89fc1696b9e8fc6c0deaa9581bd556 (patch)
tree43d93a3562aa3d47e2984fd873b728b9af02f108 /OpenSim/Region
parent* Use profile cache service for data snapshot (diff)
downloadopensim-SC_OLD-bd1b478f2c89fc1696b9e8fc6c0deaa9581bd556.zip
opensim-SC_OLD-bd1b478f2c89fc1696b9e8fc6c0deaa9581bd556.tar.gz
opensim-SC_OLD-bd1b478f2c89fc1696b9e8fc6c0deaa9581bd556.tar.bz2
opensim-SC_OLD-bd1b478f2c89fc1696b9e8fc6c0deaa9581bd556.tar.xz
* Change inventory archiver module to use profile cache
* Clean up some log messages
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs14
1 files changed, 3 insertions, 11 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs
index f8a5d9f..c5699c0 100644
--- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs
@@ -234,20 +234,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
234 /// <returns></returns> 234 /// <returns></returns>
235 protected CachedUserInfo GetUserInfo(string firstName, string lastName) 235 protected CachedUserInfo GetUserInfo(string firstName, string lastName)
236 { 236 {
237 UserProfileData userProfile = CommsManager.UserService.GetUserProfile(firstName, lastName); 237 CachedUserInfo userInfo = CommsManager.UserProfileCacheService.GetUserDetails(firstName, lastName);
238
239 if (null == userProfile)
240 {
241 m_log.ErrorFormat("[INVENTORY ARCHIVER]: Failed to find user {0} {1}", firstName, lastName);
242 return null;
243 }
244
245 CachedUserInfo userInfo = CommsManager.UserProfileCacheService.GetUserDetails(userProfile.ID);
246 if (null == userInfo) 238 if (null == userInfo)
247 { 239 {
248 m_log.ErrorFormat( 240 m_log.ErrorFormat(
249 "[INVENTORY ARCHIVER]: Failed to find user info for {0} {1} {2}", 241 "[INVENTORY ARCHIVER]: Failed to find user info for {0} {1}",
250 firstName, lastName, userProfile.ID); 242 firstName, lastName);
251 return null; 243 return null;
252 } 244 }
253 245