diff options
Diffstat (limited to 'OpenSim/Server/Handlers/Presence')
-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 | } |