aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/OGS1
diff options
context:
space:
mode:
authorMW2007-12-14 11:45:27 +0000
committerMW2007-12-14 11:45:27 +0000
commit1173a14fbf787d1605dceb931955451b9e9b8ff6 (patch)
treee08d5746b75bdeb8612022c675f073a936f2ce00 /OpenSim/Region/Communications/OGS1
parent* ARequest changed name to AssetRequest and moved to own file. (diff)
downloadopensim-SC-1173a14fbf787d1605dceb931955451b9e9b8ff6.zip
opensim-SC-1173a14fbf787d1605dceb931955451b9e9b8ff6.tar.gz
opensim-SC-1173a14fbf787d1605dceb931955451b9e9b8ff6.tar.bz2
opensim-SC-1173a14fbf787d1605dceb931955451b9e9b8ff6.tar.xz
Added some extra debug console output to Inventory Server and region OGS1 inventory requests.
Diffstat (limited to 'OpenSim/Region/Communications/OGS1')
-rw-r--r--OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs18
1 files changed, 10 insertions, 8 deletions
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
63 { 63 {
64 try 64 try
65 { 65 {
66 RestObjectPosterResponse<InventoryCollection> requester = new RestObjectPosterResponse<InventoryCollection>(); 66 Console.WriteLine("Requesting Inventory from Inventory server for " + userID.ToStringHyphenated());
67 requester.ResponseCallback = InventoryResponse; 67 RestObjectPosterResponse<InventoryCollection> requester = new RestObjectPosterResponse<InventoryCollection>();
68 68 requester.ResponseCallback = InventoryResponse;
69 requester.BeginPostObject<Guid>(_inventoryServerUrl + "/GetInventory/", userID.UUID); 69
70 requester.BeginPostObject<Guid>(_inventoryServerUrl + "/GetInventory/", userID.UUID);
71 Console.WriteLine("Request for Inventory sent");
70 } 72 }
71 catch (Exception) 73 catch (Exception)
72 { 74 {
@@ -78,7 +80,7 @@ namespace OpenSim.Region.Communications.OGS1
78 LLUUID userID = response.UserID; 80 LLUUID userID = response.UserID;
79 if (m_RequestingInventory.ContainsKey(userID)) 81 if (m_RequestingInventory.ContainsKey(userID))
80 { 82 {
81 83
82 InventoryFolderImpl rootFolder = null; 84 InventoryFolderImpl rootFolder = null;
83 InventoryRequest request = m_RequestingInventory[userID]; 85 InventoryRequest request = m_RequestingInventory[userID];
84 foreach (InventoryFolderBase folder in response.Folders) 86 foreach (InventoryFolderBase folder in response.Folders)
@@ -126,7 +128,7 @@ namespace OpenSim.Region.Communications.OGS1
126 { 128 {
127 try 129 try
128 { 130 {
129 RestObjectPoster.BeginPostObject<InventoryItemBase>(_inventoryServerUrl + "/NewItem/", item); 131 RestObjectPoster.BeginPostObject<InventoryItemBase>(_inventoryServerUrl + "/NewItem/", item);
130 } 132 }
131 catch (Exception) 133 catch (Exception)
132 { 134 {
@@ -136,8 +138,8 @@ namespace OpenSim.Region.Communications.OGS1
136 public void DeleteInventoryItem(LLUUID userID, InventoryItemBase item) 138 public void DeleteInventoryItem(LLUUID userID, InventoryItemBase item)
137 { 139 {
138 try 140 try
139 { 141 {
140 RestObjectPoster.BeginPostObject<InventoryItemBase>(_inventoryServerUrl + "/DeleteItem/", item); 142 RestObjectPoster.BeginPostObject<InventoryItemBase>(_inventoryServerUrl + "/DeleteItem/", item);
141 } 143 }
142 catch (Exception) 144 catch (Exception)
143 { 145 {