mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
reduce LogFailedXML dump to console to just 250 chars.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user