aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r--OpenSim/Framework/Util.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index f66a987..44aee02 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -3369,6 +3369,15 @@ namespace OpenSim.Framework
3369 if (length > 2000) 3369 if (length > 2000)
3370 xml = xml.Substring(0, 2000) + "..."; 3370 xml = xml.Substring(0, 2000) + "...";
3371 3371
3372 for (int i = 0 ; i < xml.Length ; i++)
3373 {
3374 if (xml[i] < 0x20)
3375 {
3376 xml = "Unprintable binary data";
3377 break;
3378 }
3379 }
3380
3372 m_log.ErrorFormat("{0} Failed XML ({1} bytes) = {2}", message, length, xml); 3381 m_log.ErrorFormat("{0} Failed XML ({1} bytes) = {2}", message, length, xml);
3373 } 3382 }
3374 3383