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

remove-scene-viewer
Justin Clark-Casey (justincc) 2011-10-12 19:42:04 +01:00
parent c5826d589a
commit ea7366ddc6
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_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;

View File

@ -271,6 +271,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
{
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)
{
// Force a final state save
@ -1008,7 +1011,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
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();
}