From 9817363b9340cb4f918f4e1ca0690f112691113c Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 30 Apr 2008 19:08:48 +0000 Subject: * Completely inconsequential inventory odds and ends (actual impact - only one log message changed) --- OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs | 7 +++++++ OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | 5 +++-- OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs b/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs index 33d820d..5f532e0 100644 --- a/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs +++ b/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs @@ -26,12 +26,17 @@ */ using System.Collections.Generic; +//using System.Reflection; + using libsecondlife; +//using log4net; namespace OpenSim.Framework.Communications.Cache { public class InventoryFolderImpl : InventoryFolderBase { + //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); + // Fields public Dictionary Items = new Dictionary(); public Dictionary SubFolders = new Dictionary(); @@ -200,6 +205,8 @@ namespace OpenSim.Framework.Communications.Cache } } + //m_log.DebugFormat("[INVENTORY FOLDER IMPL]: Found {0} items", itemList.Count); + return itemList; } diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs index 1e3dbb6..ec06a23 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs @@ -47,8 +47,7 @@ namespace OpenSim.Framework.Communications.Cache /// public class UserProfileCacheService { - private static readonly ILog m_log - = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// The comms manager holds references to services (user, grid, inventory, etc.) @@ -416,6 +415,8 @@ namespace OpenSim.Framework.Communications.Cache public List HandleFetchInventoryDescendentsCAPS(LLUUID agentID, LLUUID folderID, LLUUID ownerID, bool fetchFolders, bool fetchItems, int sortOrder) { + //m_log.DebugFormat("[INVENTORY CACHE]: Fetching folders/items from {0} for agent {1}", folderID, agentID); + // XXX We're not handling sortOrder yet! InventoryFolderImpl fold = null; diff --git a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs index 5b72f0d..b1816d0 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs @@ -239,7 +239,7 @@ namespace OpenSim.Region.Communications.OGS1 } catch (System.Net.WebException e) { - m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Add new inventory item operation failed, {0} {1}", + m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Update new inventory item operation failed, {0} {1}", e.Source, e.Message); } } -- cgit v1.1