reduce LogFailedXML dump to console to just 250 chars.

This commit is contained in:
UbitUmarov
2021-08-26 21:48:58 +01:00
parent 4aa9c882ec
commit 68f3b4aef8
2 changed files with 3 additions and 2 deletions

View File

@@ -1593,6 +1593,7 @@ namespace OpenSim.Framework.Servers.HttpServer
if (!TryGetLLSDHandler(request.RawUrl, out LLSDMethod llsdhandler))
{
response.StatusCode = (int)HttpStatusCode.NotFound;
response.KeepAlive = false;
return null;
}

View File

@@ -3933,8 +3933,8 @@ namespace OpenSim.Framework
public static void LogFailedXML(string message, string xml)
{
int length = xml.Length;
if (length > 2000)
xml = xml.Substring(0, 2000) + "...";
if (length > 250)
xml = xml.Substring(0, 250) + "...";
for (int i = 0 ; i < xml.Length ; i++)
{