From 1173a14fbf787d1605dceb931955451b9e9b8ff6 Mon Sep 17 00:00:00 2001 From: MW Date: Fri, 14 Dec 2007 11:45:27 +0000 Subject: Added some extra debug console output to Inventory Server and region OGS1 inventory requests. --- OpenSim/Grid/InventoryServer/GridInventoryService.cs | 2 ++ .../Region/Communications/OGS1/OGS1InventoryService.cs | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/OpenSim/Grid/InventoryServer/GridInventoryService.cs b/OpenSim/Grid/InventoryServer/GridInventoryService.cs index c6d3302..8756ecb 100644 --- a/OpenSim/Grid/InventoryServer/GridInventoryService.cs +++ b/OpenSim/Grid/InventoryServer/GridInventoryService.cs @@ -74,6 +74,7 @@ namespace OpenSim.Grid.InventoryServer public InventoryCollection GetUserInventory(Guid rawUserID) { + Console.WriteLine("Request for Inventory for " + rawUserID.ToString()); LLUUID userID = new LLUUID(rawUserID); InventoryCollection invCollection = new InventoryCollection(); @@ -117,6 +118,7 @@ namespace OpenSim.Grid.InventoryServer public bool AddInventoryItem( InventoryItemBase item) { + Console.WriteLine("creating new item for " + item.avatarID.ToString()); AddNewInventoryItem(item.avatarID, item); return true; } diff --git a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs index 5342127..9633963 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs @@ -63,10 +63,12 @@ namespace OpenSim.Region.Communications.OGS1 { try { - RestObjectPosterResponse requester = new RestObjectPosterResponse(); - requester.ResponseCallback = InventoryResponse; - - requester.BeginPostObject(_inventoryServerUrl + "/GetInventory/", userID.UUID); + Console.WriteLine("Requesting Inventory from Inventory server for " + userID.ToStringHyphenated()); + RestObjectPosterResponse requester = new RestObjectPosterResponse(); + requester.ResponseCallback = InventoryResponse; + + requester.BeginPostObject(_inventoryServerUrl + "/GetInventory/", userID.UUID); + Console.WriteLine("Request for Inventory sent"); } catch (Exception) { @@ -78,7 +80,7 @@ namespace OpenSim.Region.Communications.OGS1 LLUUID userID = response.UserID; if (m_RequestingInventory.ContainsKey(userID)) { - + InventoryFolderImpl rootFolder = null; InventoryRequest request = m_RequestingInventory[userID]; foreach (InventoryFolderBase folder in response.Folders) @@ -126,7 +128,7 @@ namespace OpenSim.Region.Communications.OGS1 { try { - RestObjectPoster.BeginPostObject(_inventoryServerUrl + "/NewItem/", item); + RestObjectPoster.BeginPostObject(_inventoryServerUrl + "/NewItem/", item); } catch (Exception) { @@ -136,8 +138,8 @@ namespace OpenSim.Region.Communications.OGS1 public void DeleteInventoryItem(LLUUID userID, InventoryItemBase item) { try - { - RestObjectPoster.BeginPostObject(_inventoryServerUrl + "/DeleteItem/", item); + { + RestObjectPoster.BeginPostObject(_inventoryServerUrl + "/DeleteItem/", item); } catch (Exception) { -- cgit v1.1