aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs4
-rw-r--r--OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs14
2 files changed, 13 insertions, 5 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index 8cc48bd..019a0d9 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -938,7 +938,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
938 Part.AbsolutePosition, 938 Part.AbsolutePosition,
939 Part.Name, Part.UUID, false); 939 Part.Name, Part.UUID, false);
940 m_log.Debug(string.Format( 940 m_log.Debug(string.Format(
941 "[SCRIPT INSTANCE]: {0} (at event {1}, part {2} {3} at {4} in {5}", 941 "[SCRIPT ERROR]: {0} (at event {1}, part {2} {3} at {4} in {5}",
942 e.InnerException.Message, 942 e.InnerException.Message,
943 data.EventName, 943 data.EventName,
944 PrimName, 944 PrimName,
@@ -962,7 +962,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
962 962
963 963
964 m_log.Debug(string.Format( 964 m_log.Debug(string.Format(
965 "[SCRIPT INSTANCE]: Runtime error in script {0} (event {1}), part {2} {3} at {4} in {5} ", 965 "[SCRIPT ERROR]: Runtime error in script {0} (event {1}), part {2} {3} at {4} in {5} ",
966 ScriptName, 966 ScriptName,
967 data.EventName, 967 data.EventName,
968 PrimName, 968 PrimName,
diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs b/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs
index 7a95a4a..6c969dc 100644
--- a/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs
+++ b/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs
@@ -492,11 +492,11 @@ namespace OpenSim.Region.ScriptEngine.Yengine
492 if (e.Message != null) 492 if (e.Message != null)
493 msg.Append(e.Message); 493 msg.Append(e.Message);
494 494
495 msg.Append(" script: "); 495 msg.Append(" (script: ");
496 msg.Append(m_Item.Name); 496 msg.Append(m_Item.Name);
497 msg.Append(" event: "); 497 msg.Append(" event: ");
498 msg.Append(ev.ToString()); 498 msg.Append(ev.ToString());
499 msg.Append(" (primID: "); 499 msg.Append(" primID: ");
500 msg.Append(m_Part.UUID.ToString()); 500 msg.Append(m_Part.UUID.ToString());
501 msg.Append(" at: <"); 501 msg.Append(" at: <");
502 Vector3 pos = m_Part.AbsolutePosition; 502 Vector3 pos = m_Part.AbsolutePosition;
@@ -511,11 +511,19 @@ namespace OpenSim.Region.ScriptEngine.Yengine
511 if (msgst.Length > 1000) 511 if (msgst.Length > 1000)
512 msgst = msgst.Substring(0, 1000); 512 msgst = msgst.Substring(0, 1000);
513 513
514 m_log.Info(msgst);
515 m_Engine.World.SimChat(Utils.StringToBytes(msgst), 514 m_Engine.World.SimChat(Utils.StringToBytes(msgst),
516 ChatTypeEnum.DebugChannel, 2147483647, 515 ChatTypeEnum.DebugChannel, 2147483647,
517 m_Part.AbsolutePosition, 516 m_Part.AbsolutePosition,
518 m_Part.Name, m_Part.UUID, false); 517 m_Part.Name, m_Part.UUID, false);
518 m_log.Debug(string.Format(
519 "[SCRIPT ERROR]: {0} (at event {1}, part {2} {3} at {4} in {5}",
520 (e.Message == null)? "" : e.Message,
521 ev.ToString(),
522 m_Part.Name,
523 m_Part.UUID,
524 m_Part.AbsolutePosition,
525 m_Part.ParentGroup.Scene.Name));
526
519 m_SleepUntil = DateTime.MaxValue; 527 m_SleepUntil = DateTime.MaxValue;
520 } 528 }
521 529