From 7356860b487febd12c2e0de2f009a6df9ea0aeec Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Wed, 13 Jan 2010 09:17:30 -0800 Subject: Several more buglets removed. --- OpenSim/Server/Handlers/Presence/PresenceServerPostHandler.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'OpenSim/Server/Handlers/Presence/PresenceServerPostHandler.cs') 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 body = body.Trim(); //m_log.DebugFormat("[XXX]: query String: {0}", body); - + string method = string.Empty; try { Dictionary request = @@ -74,7 +74,7 @@ namespace OpenSim.Server.Handlers.Presence if (!request.ContainsKey("METHOD")) return FailureResult(); - string method = request["METHOD"].ToString(); + method = request["METHOD"].ToString(); switch (method) { @@ -97,7 +97,7 @@ namespace OpenSim.Server.Handlers.Presence } catch (Exception e) { - m_log.Debug("[PRESENCE HANDLER]: Exception {0}" + e); + m_log.DebugFormat("[PRESENCE HANDLER]: Exception in method {0}: {1}", method, e); } return FailureResult(); @@ -188,9 +188,11 @@ namespace OpenSim.Server.Handlers.Presence if (request.ContainsKey("lookAt")) Vector3.TryParse(request["lookAt"].ToString(), out look); - + if (m_PresenceService.ReportAgent(session, region, position, look)) + { return SuccessResult(); + } return FailureResult(); } -- cgit v1.1