bring back some script engine debugging, hoping this will help track down the randoms segfaults
parent
ea0f3efcac
commit
f47bcb0f98
|
@ -49,9 +49,9 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
|
|
||||||
string EventName = m_Script.State + "_event_" + FunctionName;
|
string EventName = m_Script.State + "_event_" + FunctionName;
|
||||||
|
|
||||||
///#if DEBUG
|
#if DEBUG
|
||||||
/// Console.WriteLine("ScriptEngine: Script event function name: " + EventName);
|
Console.WriteLine("ScriptEngine: Script event function name: " + EventName);
|
||||||
///#endif
|
#endif
|
||||||
|
|
||||||
if (Events.ContainsKey(EventName) == false)
|
if (Events.ContainsKey(EventName) == false)
|
||||||
{
|
{
|
||||||
|
@ -80,9 +80,9 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
}
|
}
|
||||||
|
|
||||||
//cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined
|
//cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined
|
||||||
///#if DEBUG
|
#if DEBUG
|
||||||
/// Console.WriteLine("ScriptEngine: Executing function name: " + EventName);
|
Console.WriteLine("ScriptEngine: Executing function name: " + EventName);
|
||||||
///#endif
|
#endif
|
||||||
// Found
|
// Found
|
||||||
ev.Invoke(m_Script, args);
|
ev.Invoke(m_Script, args);
|
||||||
|
|
||||||
|
|
|
@ -228,14 +228,14 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
///cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined
|
///cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined
|
||||||
///#if DEBUG
|
#if DEBUG
|
||||||
/// eventQueueManager.m_ScriptEngine.Log.Debug("[" + ScriptEngineName + "]: " +
|
eventQueueManager.m_ScriptEngine.Log.Debug("[" + ScriptEngineName + "]: " +
|
||||||
/// "Executing event:\r\n"
|
"Executing event:\r\n"
|
||||||
/// + "QIS.localID: " + QIS.localID
|
+ "QIS.localID: " + QIS.localID
|
||||||
/// + ", QIS.itemID: " + QIS.itemID
|
+ ", QIS.itemID: " + QIS.itemID
|
||||||
/// + ", QIS.functionName: " +
|
+ ", QIS.functionName: " +
|
||||||
/// QIS.functionName);
|
QIS.functionName);
|
||||||
///#endif
|
#endif
|
||||||
LastExecutionStarted = DateTime.Now.Ticks;
|
LastExecutionStarted = DateTime.Now.Ticks;
|
||||||
KillCurrentScript = false;
|
KillCurrentScript = false;
|
||||||
InExecution = true;
|
InExecution = true;
|
||||||
|
|
|
@ -127,9 +127,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
|
||||||
|
|
||||||
public void ReadConfig()
|
public void ReadConfig()
|
||||||
{
|
{
|
||||||
//#if DEBUG
|
#if DEBUG
|
||||||
// m_log.Debug("[" + ScriptEngineName + "]: Refreshing configuration for all modules");
|
m_log.Debug("[" + ScriptEngineName + "]: Refreshing configuration for all modules");
|
||||||
//#endif
|
#endif
|
||||||
RefreshConfigFileSeconds = ScriptConfigSource.GetInt("RefreshConfig", 30);
|
RefreshConfigFileSeconds = ScriptConfigSource.GetInt("RefreshConfig", 30);
|
||||||
|
|
||||||
// Reload from disk? No!
|
// Reload from disk? No!
|
||||||
|
|
Loading…
Reference in New Issue