Prevent the spammy "many event" message from appearing in normal use.

Console command debug xengine now turns that on.
Also, per orenh, remove the triggers at 1000 and 10000 as they are not
useful now that top scripts works.
0.8.2-post-fixes
Melanie Thielker 2015-08-17 18:05:39 +02:00
parent ce2aeb8424
commit 664ecb1938
1 changed files with 4 additions and 2 deletions

View File

@ -959,9 +959,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
// script engine to run the next event. // script engine to run the next event.
lock (EventQueue) lock (EventQueue)
{ {
EventsProcessed++; // Increase processed events counter and prevent wrap;
if (++EventsProcessed == 1000000)
EventsProcessed = 100000;
if ((EventsProcessed == 1000) || (EventsProcessed == 10000) || ((EventsProcessed % 100000) == 0)) if ((EventsProcessed % 100000) == 0 && DebugLevel > 0)
{ {
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", 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",
ScriptTask.Name, ScriptTask.Name,