When shutting down XEngine, log how many scripts are being shutdown so the user knows why they are waiting.

0.7.2-post-fixes
Justin Clark-Casey (justincc) 2011-10-12 19:42:04 +01:00
parent 3f70f54fa6
commit b342fb9c0a
2 changed files with 5 additions and 2 deletions

View File

@ -678,7 +678,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
m_CollisionInQueue = false; m_CollisionInQueue = false;
} }
//m_log.DebugFormat("[XENGINE]: Processing event {0} for {1}", data.EventName, this); //m_log.DebugFormat("[XEngine]: Processing event {0} for {1}", data.EventName, this);
m_DetectParams = data.DetectParams; m_DetectParams = data.DetectParams;

View File

@ -271,6 +271,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
{ {
lock (m_Scripts) lock (m_Scripts)
{ {
m_log.InfoFormat(
"[XEngine]: Shutting down {0} scripts in {1}", m_Scripts.Count, m_Scene.RegionInfo.RegionName);
foreach (IScriptInstance instance in m_Scripts.Values) foreach (IScriptInstance instance in m_Scripts.Values)
{ {
// Force a final state save // Force a final state save
@ -1008,7 +1011,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
IScriptInstance instance = (ScriptInstance) parms; IScriptInstance instance = (ScriptInstance) parms;
//m_log.DebugFormat("[XENGINE]: Processing event for {0}", instance); //m_log.DebugFormat("[XEngine]: Processing event for {0}", instance);
return instance.EventProcessor(); return instance.EventProcessor();
} }