aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index d78738f..0055322 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -932,6 +932,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
932 { 932 {
933 EventsProcessed++; 933 EventsProcessed++;
934 934
935 if ((EventsProcessed == 1000) || (EventsProcessed == 10000) || ((EventsProcessed % 100000) == 0))
936 {
937 m_log.DebugFormat("[SCRIPT INSTANCE]: Script \"{0}\" (Object \"{1}\" {2} @ {3}.{4}, Item ID {5}, Asset {6}) in event {7}: processed {8:n0} script events",
938 ScriptTask.Name,
939 Part.ParentGroup.Name, Part.ParentGroup.UUID, Part.ParentGroup.AbsolutePosition, Part.ParentGroup.Scene.Name,
940 ScriptTask.ItemID, ScriptTask.AssetID, data.EventName, EventsProcessed);
941 }
942
935 if (EventQueue.Count > 0 && Running && !ShuttingDown) 943 if (EventQueue.Count > 0 && Running && !ShuttingDown)
936 { 944 {
937 m_CurrentWorkItem = Engine.QueueEventHandler(this); 945 m_CurrentWorkItem = Engine.QueueEventHandler(this);