Add log warning if xmlrpc request deserialization fails

0.6.8-post-fixes
justincc 2009-12-19 16:58:30 +00:00
parent 9aee2bc8e7
commit 754bfeeb04
1 changed files with 12 additions and 9 deletions

View File

@ -700,10 +700,13 @@ namespace OpenSim.Framework.Servers.HttpServer
try try
{ {
xmlRprcRequest = (XmlRpcRequest) (new XmlRpcRequestDeserializer()).Deserialize(requestBody); xmlRprcRequest = (XmlRpcRequest)(new XmlRpcRequestDeserializer()).Deserialize(requestBody);
} }
catch (XmlException) catch (XmlException e)
{ {
m_log.WarnFormat(
"[BASE HTTP SERVER]: Ignoring XMLRPC request from {0} due to deserialization exception {1} {2}",
request.RemoteIPEndPoint, e.Message, e.StackTrace);
} }
if (xmlRprcRequest != null) if (xmlRprcRequest != null)