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. --- .../Handlers/UserAccounts/UserAccountServerPostHandler.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'OpenSim/Server/Handlers/UserAccounts') diff --git a/OpenSim/Server/Handlers/UserAccounts/UserAccountServerPostHandler.cs b/OpenSim/Server/Handlers/UserAccounts/UserAccountServerPostHandler.cs index b54b63e..6a82165 100644 --- a/OpenSim/Server/Handlers/UserAccounts/UserAccountServerPostHandler.cs +++ b/OpenSim/Server/Handlers/UserAccounts/UserAccountServerPostHandler.cs @@ -68,7 +68,7 @@ namespace OpenSim.Server.Handlers.UserAccounts //httpRequest.Headers["authorization"] ... //m_log.DebugFormat("[XXX]: query String: {0}", body); - + string method = string.Empty; try { Dictionary request = @@ -77,7 +77,7 @@ namespace OpenSim.Server.Handlers.UserAccounts if (!request.ContainsKey("METHOD")) return FailureResult(); - string method = request["METHOD"].ToString(); + method = request["METHOD"].ToString(); switch (method) { @@ -88,11 +88,11 @@ namespace OpenSim.Server.Handlers.UserAccounts case "setaccount": return StoreAccount(request); } - m_log.DebugFormat("[PRESENCE HANDLER]: unknown method request: {0}", method); + m_log.DebugFormat("[USER SERVICE HANDLER]: unknown method request: {0}", method); } catch (Exception e) { - m_log.Debug("[PRESENCE HANDLER]: Exception {0}" + e); + m_log.DebugFormat("[USER SERVICE HANDLER]: Exception in method {0}: {1}", method, e); } return FailureResult(); @@ -134,7 +134,9 @@ namespace OpenSim.Server.Handlers.UserAccounts if (account == null) result["result"] = "null"; else + { result["result"] = account.ToKeyValuePairs(); + } return ResultToBytes(result); } @@ -247,7 +249,6 @@ namespace OpenSim.Server.Handlers.UserAccounts private byte[] ResultToBytes(Dictionary result) { string xmlString = ServerUtils.BuildXmlResponse(result); - //m_log.DebugFormat("[GRID HANDLER]: resp string: {0}", xmlString); UTF8Encoding encoding = new UTF8Encoding(); return encoding.GetBytes(xmlString); } -- cgit v1.1