diff options
author | Diva Canto | 2010-01-13 09:17:30 -0800 |
---|---|---|
committer | Diva Canto | 2010-01-13 09:17:30 -0800 |
commit | 7356860b487febd12c2e0de2f009a6df9ea0aeec (patch) | |
tree | 801eaa0c90483cca8a07f2b4f9f30bf16be84f62 /OpenSim/Server/Handlers/Presence/PresenceServerPostHandler.cs | |
parent | More appearance woes fixed, this time for child agents. Tested on a grid with... (diff) | |
download | opensim-SC-7356860b487febd12c2e0de2f009a6df9ea0aeec.zip opensim-SC-7356860b487febd12c2e0de2f009a6df9ea0aeec.tar.gz opensim-SC-7356860b487febd12c2e0de2f009a6df9ea0aeec.tar.bz2 opensim-SC-7356860b487febd12c2e0de2f009a6df9ea0aeec.tar.xz |
Several more buglets removed.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Server/Handlers/Presence/PresenceServerPostHandler.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/Server/Handlers/Presence/PresenceServerPostHandler.cs b/OpenSim/Server/Handlers/Presence/PresenceServerPostHandler.cs index 926c195..d180bbb 100644 --- a/OpenSim/Server/Handlers/Presence/PresenceServerPostHandler.cs +++ b/OpenSim/Server/Handlers/Presence/PresenceServerPostHandler.cs | |||
@@ -65,7 +65,7 @@ namespace OpenSim.Server.Handlers.Presence | |||
65 | body = body.Trim(); | 65 | body = body.Trim(); |
66 | 66 | ||
67 | //m_log.DebugFormat("[XXX]: query String: {0}", body); | 67 | //m_log.DebugFormat("[XXX]: query String: {0}", body); |
68 | 68 | string method = string.Empty; | |
69 | try | 69 | try |
70 | { | 70 | { |
71 | Dictionary<string, object> request = | 71 | Dictionary<string, object> request = |
@@ -74,7 +74,7 @@ namespace OpenSim.Server.Handlers.Presence | |||
74 | if (!request.ContainsKey("METHOD")) | 74 | if (!request.ContainsKey("METHOD")) |
75 | return FailureResult(); | 75 | return FailureResult(); |
76 | 76 | ||
77 | string method = request["METHOD"].ToString(); | 77 | method = request["METHOD"].ToString(); |
78 | 78 | ||
79 | switch (method) | 79 | switch (method) |
80 | { | 80 | { |
@@ -97,7 +97,7 @@ namespace OpenSim.Server.Handlers.Presence | |||
97 | } | 97 | } |
98 | catch (Exception e) | 98 | catch (Exception e) |
99 | { | 99 | { |
100 | m_log.Debug("[PRESENCE HANDLER]: Exception {0}" + e); | 100 | m_log.DebugFormat("[PRESENCE HANDLER]: Exception in method {0}: {1}", method, e); |
101 | } | 101 | } |
102 | 102 | ||
103 | return FailureResult(); | 103 | return FailureResult(); |
@@ -188,9 +188,11 @@ namespace OpenSim.Server.Handlers.Presence | |||
188 | 188 | ||
189 | if (request.ContainsKey("lookAt")) | 189 | if (request.ContainsKey("lookAt")) |
190 | Vector3.TryParse(request["lookAt"].ToString(), out look); | 190 | Vector3.TryParse(request["lookAt"].ToString(), out look); |
191 | 191 | ||
192 | if (m_PresenceService.ReportAgent(session, region, position, look)) | 192 | if (m_PresenceService.ReportAgent(session, region, position, look)) |
193 | { | ||
193 | return SuccessResult(); | 194 | return SuccessResult(); |
195 | } | ||
194 | 196 | ||
195 | return FailureResult(); | 197 | return FailureResult(); |
196 | } | 198 | } |