From 19595a28253e413d986f2f1ebc879ba9eb4c0e8a Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 25 Mar 2009 19:14:36 +0000 Subject: [PATCH] * minor: spit out creator name on save iar * not yet ready for use --- OpenSim/Region/Application/OpenSimBase.cs | 8 ++++---- .../Archiver/InventoryArchiveWriteRequest.cs | 12 ++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 941a7d2f6c..05f773e266 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -423,7 +423,7 @@ namespace OpenSim IAssetCache assetCache = null; if (m_configSettings.AssetCache != null && m_configSettings.AssetCache != String.Empty) { - m_log.DebugFormat("[OPENSIMBASE] Attempting to load asset cache id={0}", m_configSettings.AssetCache); + m_log.DebugFormat("[OPENSIMBASE]: Attempting to load asset cache id = {0}", m_configSettings.AssetCache); try { PluginInitialiserBase init = new AssetCachePluginInitialiser(m_configSettings, assetServer); @@ -436,7 +436,7 @@ namespace OpenSim } catch (Exception e) { - m_log.Debug("[OPENSIMBASE] ResolveAssetCache completed"); + m_log.Debug("[OPENSIMBASE]: ResolveAssetCache completed"); m_log.Debug(e); } } @@ -449,12 +449,12 @@ namespace OpenSim { if (LoginEnabled) { - m_log.Info("[Login] Login are now enabled "); + m_log.Info("[Login]: Login is now enabled "); m_commsManager.GridService.RegionLoginsEnabled = true; } else { - m_log.Info("[Login] Login are now disabled "); + m_log.Info("[Login]: Login is now disabled "); m_commsManager.GridService.RegionLoginsEnabled = false; } } diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs index 460fbf5c28..dde75334db 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs @@ -175,6 +175,18 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver m_archive.WriteFile(filename, sw.ToString()); + // Record the creator of this item + CachedUserInfo creator + = m_module.CommsManager.UserProfileCacheService.GetUserDetails(inventoryItem.Creator); + + if (creator != null) + m_log.DebugFormat( + "[INVENTORY ARCHIVER]: Got creator {0} {1}", creator.UserProfile.Name, creator.UserProfile.ID); + else + m_log.WarnFormat( + "[INVENTORY ARCHIVER]: Failed to get creator profile for {0} {1}", + inventoryItem.Name, inventoryItem.ID); + m_assetGatherer.GatherAssetUuids(inventoryItem.AssetID, (AssetType)inventoryItem.AssetType, assetUuids); }