From 0307427b94a5a5d048da4d298ec5f3298ceedd2d Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 26 Nov 2018 20:20:28 +0000 Subject: a few more changes --- .../Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 4 ++-- OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs | 14 +++++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) (limited to 'OpenSim') 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 Part.AbsolutePosition, Part.Name, Part.UUID, false); m_log.Debug(string.Format( - "[SCRIPT INSTANCE]: {0} (at event {1}, part {2} {3} at {4} in {5}", + "[SCRIPT ERROR]: {0} (at event {1}, part {2} {3} at {4} in {5}", e.InnerException.Message, data.EventName, PrimName, @@ -962,7 +962,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance m_log.Debug(string.Format( - "[SCRIPT INSTANCE]: Runtime error in script {0} (event {1}), part {2} {3} at {4} in {5} ", + "[SCRIPT ERROR]: Runtime error in script {0} (event {1}), part {2} {3} at {4} in {5} ", ScriptName, data.EventName, 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 if (e.Message != null) msg.Append(e.Message); - msg.Append(" script: "); + msg.Append(" (script: "); msg.Append(m_Item.Name); msg.Append(" event: "); msg.Append(ev.ToString()); - msg.Append(" (primID: "); + msg.Append(" primID: "); msg.Append(m_Part.UUID.ToString()); msg.Append(" at: <"); Vector3 pos = m_Part.AbsolutePosition; @@ -511,11 +511,19 @@ namespace OpenSim.Region.ScriptEngine.Yengine if (msgst.Length > 1000) msgst = msgst.Substring(0, 1000); - m_log.Info(msgst); m_Engine.World.SimChat(Utils.StringToBytes(msgst), ChatTypeEnum.DebugChannel, 2147483647, m_Part.AbsolutePosition, m_Part.Name, m_Part.UUID, false); + m_log.Debug(string.Format( + "[SCRIPT ERROR]: {0} (at event {1}, part {2} {3} at {4} in {5}", + (e.Message == null)? "" : e.Message, + ev.ToString(), + m_Part.Name, + m_Part.UUID, + m_Part.AbsolutePosition, + m_Part.ParentGroup.Scene.Name)); + m_SleepUntil = DateTime.MaxValue; } -- cgit v1.1