diff options
author | Justin Clark-Casey (justincc) | 2010-08-23 22:24:23 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-08-23 22:24:23 +0100 |
commit | 74e5fe5aa94aa338c0e574553ccabd42a93b0bbd (patch) | |
tree | 1c27cc9733728cd613c7a2b84a3edd29a78823e7 /OpenSim/Region/CoreModules/Avatar | |
parent | Correct a minor typo (diff) | |
download | opensim-SC-74e5fe5aa94aa338c0e574553ccabd42a93b0bbd.zip opensim-SC-74e5fe5aa94aa338c0e574553ccabd42a93b0bbd.tar.gz opensim-SC-74e5fe5aa94aa338c0e574553ccabd42a93b0bbd.tar.bz2 opensim-SC-74e5fe5aa94aa338c0e574553ccabd42a93b0bbd.tar.xz |
Remove various warnings and improve logging messages. No functional changes.
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
3 files changed, 17 insertions, 18 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs index a3c40e0..420e3ca 100644 --- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs | |||
@@ -198,4 +198,4 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage | |||
198 | OnInstantMessage(null, msg); | 198 | OnInstantMessage(null, msg); |
199 | } | 199 | } |
200 | } | 200 | } |
201 | } | 201 | } \ No newline at end of file |
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs index d025f0c..730cc77 100644 --- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs | |||
@@ -132,20 +132,21 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage | |||
132 | { | 132 | { |
133 | UUID toAgentID = new UUID(im.toAgentID); | 133 | UUID toAgentID = new UUID(im.toAgentID); |
134 | 134 | ||
135 | m_log.DebugFormat("[INSTANT MESSAGE]: Attempting delivery of IM from {0} to {1}", im.fromAgentName, toAgentID.ToString()); | ||
136 | |||
137 | // Try root avatar only first | 135 | // Try root avatar only first |
138 | foreach (Scene scene in m_Scenes) | 136 | foreach (Scene scene in m_Scenes) |
139 | { | 137 | { |
140 | if (scene.Entities.ContainsKey(toAgentID) && | 138 | if (scene.Entities.ContainsKey(toAgentID) && |
141 | scene.Entities[toAgentID] is ScenePresence) | 139 | scene.Entities[toAgentID] is ScenePresence) |
142 | { | 140 | { |
143 | m_log.DebugFormat("[INSTANT MESSAGE]: Looking for {0} in {1}", toAgentID.ToString(), scene.RegionInfo.RegionName); | 141 | // m_log.DebugFormat( |
144 | // Local message | 142 | // "[INSTANT MESSAGE]: Looking for root agent {0} in {1}", |
143 | // toAgentID.ToString(), scene.RegionInfo.RegionName); | ||
144 | |||
145 | ScenePresence user = (ScenePresence) scene.Entities[toAgentID]; | 145 | ScenePresence user = (ScenePresence) scene.Entities[toAgentID]; |
146 | if (!user.IsChildAgent) | 146 | if (!user.IsChildAgent) |
147 | { | 147 | { |
148 | m_log.DebugFormat("[INSTANT MESSAGE]: Delivering to client"); | 148 | // Local message |
149 | m_log.DebugFormat("[INSTANT MESSAGE]: Delivering IM to root agent {0} {1}", user.Name, toAgentID); | ||
149 | user.ControllingClient.SendInstantMessage(im); | 150 | user.ControllingClient.SendInstantMessage(im); |
150 | 151 | ||
151 | // Message sent | 152 | // Message sent |
@@ -167,7 +168,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage | |||
167 | // Local message | 168 | // Local message |
168 | ScenePresence user = (ScenePresence) scene.Entities[toAgentID]; | 169 | ScenePresence user = (ScenePresence) scene.Entities[toAgentID]; |
169 | 170 | ||
170 | m_log.DebugFormat("[INSTANT MESSAGE]: Delivering to client"); | 171 | m_log.DebugFormat("[INSTANT MESSAGE]: Delivering IM to child agent {0} {1}", user.Name, toAgentID); |
171 | user.ControllingClient.SendInstantMessage(im); | 172 | user.ControllingClient.SendInstantMessage(im); |
172 | 173 | ||
173 | // Message sent | 174 | // Message sent |
@@ -176,6 +177,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage | |||
176 | } | 177 | } |
177 | } | 178 | } |
178 | 179 | ||
180 | m_log.DebugFormat("[INSTANT MESSAGE]: Delivering IM to {0} via XMLRPC", im.toAgentID); | ||
179 | SendGridInstantMessageViaXMLRPC(im, result); | 181 | SendGridInstantMessageViaXMLRPC(im, result); |
180 | 182 | ||
181 | return; | 183 | return; |
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs index 8b77a5f..4117e86 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs | |||
@@ -32,7 +32,6 @@ using log4net; | |||
32 | using Nini.Config; | 32 | using Nini.Config; |
33 | using OpenMetaverse; | 33 | using OpenMetaverse; |
34 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
35 | |||
36 | using OpenSim.Region.Framework.Interfaces; | 35 | using OpenSim.Region.Framework.Interfaces; |
37 | using OpenSim.Region.Framework.Scenes; | 36 | using OpenSim.Region.Framework.Scenes; |
38 | using OpenSim.Services.Interfaces; | 37 | using OpenSim.Services.Interfaces; |
@@ -92,7 +91,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer | |||
92 | m_TransferModule = m_Scenelist[0].RequestModuleInterface<IMessageTransferModule>(); | 91 | m_TransferModule = m_Scenelist[0].RequestModuleInterface<IMessageTransferModule>(); |
93 | if (m_TransferModule == null) | 92 | if (m_TransferModule == null) |
94 | { | 93 | { |
95 | m_log.Error("[INVENTORY TRANSFER] No Message transfer module found, transfers will be local only"); | 94 | m_log.Error("[INVENTORY TRANSFER]: No Message transfer module found, transfers will be local only"); |
96 | m_Enabled = false; | 95 | m_Enabled = false; |
97 | 96 | ||
98 | m_Scenelist.Clear(); | 97 | m_Scenelist.Clear(); |
@@ -160,8 +159,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer | |||
160 | 159 | ||
161 | private void OnInstantMessage(IClientAPI client, GridInstantMessage im) | 160 | private void OnInstantMessage(IClientAPI client, GridInstantMessage im) |
162 | { | 161 | { |
163 | m_log.InfoFormat("[INVENTORY TRANSFER]: OnInstantMessage {0}", im.dialog); | 162 | m_log.InfoFormat( |
164 | 163 | "[INVENTORY TRANSFER]: {0} IM type received from {1}", | |
164 | (InstantMessageDialog)im.dialog, client.Name); | ||
165 | |||
165 | Scene scene = FindClientScene(client.AgentId); | 166 | Scene scene = FindClientScene(client.AgentId); |
166 | 167 | ||
167 | if (scene == null) // Something seriously wrong here. | 168 | if (scene == null) // Something seriously wrong here. |
@@ -185,7 +186,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer | |||
185 | { | 186 | { |
186 | UUID folderID = new UUID(im.binaryBucket, 1); | 187 | UUID folderID = new UUID(im.binaryBucket, 1); |
187 | 188 | ||
188 | m_log.DebugFormat("[AGENT INVENTORY]: Inserting original folder {0} "+ | 189 | m_log.DebugFormat("[INVENTORY TRANSFER]: Inserting original folder {0} "+ |
189 | "into agent {1}'s inventory", | 190 | "into agent {1}'s inventory", |
190 | folderID, new UUID(im.toAgentID)); | 191 | folderID, new UUID(im.toAgentID)); |
191 | 192 | ||
@@ -221,7 +222,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer | |||
221 | 222 | ||
222 | UUID itemID = new UUID(im.binaryBucket, 1); | 223 | UUID itemID = new UUID(im.binaryBucket, 1); |
223 | 224 | ||
224 | m_log.DebugFormat("[AGENT INVENTORY]: (giving) Inserting item {0} "+ | 225 | m_log.DebugFormat("[INVENTORY TRANSFER]: (giving) Inserting item {0} "+ |
225 | "into agent {1}'s inventory", | 226 | "into agent {1}'s inventory", |
226 | itemID, new UUID(im.toAgentID)); | 227 | itemID, new UUID(im.toAgentID)); |
227 | 228 | ||
@@ -286,10 +287,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer | |||
286 | // inventory is loaded. Courtesy of the above bulk update, | 287 | // inventory is loaded. Courtesy of the above bulk update, |
287 | // It will have been pushed to the client, too | 288 | // It will have been pushed to the client, too |
288 | // | 289 | // |
289 | |||
290 | //CachedUserInfo userInfo = | ||
291 | // scene.CommsManager.UserProfileCacheService. | ||
292 | // GetUserDetails(client.AgentId); | ||
293 | IInventoryService invService = scene.InventoryService; | 290 | IInventoryService invService = scene.InventoryService; |
294 | 291 | ||
295 | InventoryFolderBase trashFolder = | 292 | InventoryFolderBase trashFolder = |