* Completely inconsequential inventory odds and ends (actual impact - only one log message changed)

0.6.0-stable
Justin Clarke Casey 2008-04-30 19:08:48 +00:00
parent a9aee0162a
commit 9817363b93
3 changed files with 11 additions and 3 deletions

View File

@ -26,12 +26,17 @@
*/ */
using System.Collections.Generic; using System.Collections.Generic;
//using System.Reflection;
using libsecondlife; using libsecondlife;
//using log4net;
namespace OpenSim.Framework.Communications.Cache namespace OpenSim.Framework.Communications.Cache
{ {
public class InventoryFolderImpl : InventoryFolderBase public class InventoryFolderImpl : InventoryFolderBase
{ {
//private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
// Fields // Fields
public Dictionary<LLUUID, InventoryItemBase> Items = new Dictionary<LLUUID, InventoryItemBase>(); public Dictionary<LLUUID, InventoryItemBase> Items = new Dictionary<LLUUID, InventoryItemBase>();
public Dictionary<LLUUID, InventoryFolderImpl> SubFolders = new Dictionary<LLUUID, InventoryFolderImpl>(); public Dictionary<LLUUID, InventoryFolderImpl> SubFolders = new Dictionary<LLUUID, InventoryFolderImpl>();
@ -200,6 +205,8 @@ namespace OpenSim.Framework.Communications.Cache
} }
} }
//m_log.DebugFormat("[INVENTORY FOLDER IMPL]: Found {0} items", itemList.Count);
return itemList; return itemList;
} }

View File

@ -47,8 +47,7 @@ namespace OpenSim.Framework.Communications.Cache
/// </summary> /// </summary>
public class UserProfileCacheService public class UserProfileCacheService
{ {
private static readonly ILog m_log private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
= LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
/// <summary> /// <summary>
/// The comms manager holds references to services (user, grid, inventory, etc.) /// The comms manager holds references to services (user, grid, inventory, etc.)
@ -416,6 +415,8 @@ namespace OpenSim.Framework.Communications.Cache
public List<InventoryItemBase> HandleFetchInventoryDescendentsCAPS(LLUUID agentID, LLUUID folderID, LLUUID ownerID, public List<InventoryItemBase> HandleFetchInventoryDescendentsCAPS(LLUUID agentID, LLUUID folderID, LLUUID ownerID,
bool fetchFolders, bool fetchItems, int sortOrder) 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! // XXX We're not handling sortOrder yet!
InventoryFolderImpl fold = null; InventoryFolderImpl fold = null;

View File

@ -239,7 +239,7 @@ namespace OpenSim.Region.Communications.OGS1
} }
catch (System.Net.WebException e) 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); e.Source, e.Message);
} }
} }