diff options
author | Justin Clark-Casey (justincc) | 2012-05-04 22:11:25 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-05-04 22:11:25 +0100 |
commit | da4819a170071d2acae309606c4ac2cf9f772a39 (patch) | |
tree | 99aa17ea523f580427244b5a7a8220cf18aa3711 /OpenSim/Region | |
parent | minor: remove mono compiler warning (diff) | |
download | opensim-SC_OLD-da4819a170071d2acae309606c4ac2cf9f772a39.zip opensim-SC_OLD-da4819a170071d2acae309606c4ac2cf9f772a39.tar.gz opensim-SC_OLD-da4819a170071d2acae309606c4ac2cf9f772a39.tar.bz2 opensim-SC_OLD-da4819a170071d2acae309606c4ac2cf9f772a39.tar.xz |
Temporarily add debug log lines to lsl url request and release
To help with http://opensimulator.org/mantis/view.php?id=5993
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs b/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs index 93e75b3..d58fc0f 100644 --- a/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs | |||
@@ -146,6 +146,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp | |||
146 | public void Close() | 146 | public void Close() |
147 | { | 147 | { |
148 | } | 148 | } |
149 | |||
149 | public UUID RequestURL(IScriptModule engine, SceneObjectPart host, UUID itemID) | 150 | public UUID RequestURL(IScriptModule engine, SceneObjectPart host, UUID itemID) |
150 | { | 151 | { |
151 | UUID urlcode = UUID.Random(); | 152 | UUID urlcode = UUID.Random(); |
@@ -175,6 +176,10 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp | |||
175 | uri, | 176 | uri, |
176 | new PollServiceEventArgs(HttpRequestHandler, HasEvents, GetEvents, NoEvents, urlcode)); | 177 | new PollServiceEventArgs(HttpRequestHandler, HasEvents, GetEvents, NoEvents, urlcode)); |
177 | 178 | ||
179 | m_log.DebugFormat( | ||
180 | "[URL MODULE]: Set up incoming request url {0} for {1} in {2} {3}", | ||
181 | uri, itemID, host.Name, host.LocalId); | ||
182 | |||
178 | engine.PostScriptEvent(itemID, "http_request", new Object[] { urlcode.ToString(), "URL_REQUEST_GRANTED", url }); | 183 | engine.PostScriptEvent(itemID, "http_request", new Object[] { urlcode.ToString(), "URL_REQUEST_GRANTED", url }); |
179 | } | 184 | } |
180 | 185 | ||
@@ -217,6 +222,10 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp | |||
217 | uri, | 222 | uri, |
218 | new PollServiceEventArgs(HttpRequestHandler, HasEvents, GetEvents, NoEvents, urlcode)); | 223 | new PollServiceEventArgs(HttpRequestHandler, HasEvents, GetEvents, NoEvents, urlcode)); |
219 | 224 | ||
225 | m_log.DebugFormat( | ||
226 | "[URL MODULE]: Set up incoming secure request url {0} for {1} in {2} {3}", | ||
227 | uri, itemID, host.Name, host.LocalId); | ||
228 | |||
220 | engine.PostScriptEvent(itemID, "http_request", new Object[] { urlcode.ToString(), "URL_REQUEST_GRANTED", url }); | 229 | engine.PostScriptEvent(itemID, "http_request", new Object[] { urlcode.ToString(), "URL_REQUEST_GRANTED", url }); |
221 | } | 230 | } |
222 | 231 | ||
@@ -237,6 +246,10 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp | |||
237 | foreach (UUID req in data.requests.Keys) | 246 | foreach (UUID req in data.requests.Keys) |
238 | m_RequestMap.Remove(req); | 247 | m_RequestMap.Remove(req); |
239 | 248 | ||
249 | m_log.DebugFormat( | ||
250 | "[URL MODULE]: Releasing url {0} for {1} in {2}", | ||
251 | url, data.itemID, data.hostID); | ||
252 | |||
240 | RemoveUrl(data); | 253 | RemoveUrl(data); |
241 | m_UrlMap.Remove(url); | 254 | m_UrlMap.Remove(url); |
242 | } | 255 | } |