bring back some script engine debugging, hoping this will help track down the randoms segfaults

ThreadPoolClientBranch
Sean Dague 2008-02-18 14:17:09 +00:00
parent ea0f3efcac
commit f47bcb0f98
3 changed files with 18 additions and 18 deletions

View File

@ -49,9 +49,9 @@ namespace OpenSim.Region.ScriptEngine.Common
string EventName = m_Script.State + "_event_" + FunctionName;
///#if DEBUG
/// Console.WriteLine("ScriptEngine: Script event function name: " + EventName);
///#endif
#if DEBUG
Console.WriteLine("ScriptEngine: Script event function name: " + EventName);
#endif
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
///#if DEBUG
/// Console.WriteLine("ScriptEngine: Executing function name: " + EventName);
///#endif
#if DEBUG
Console.WriteLine("ScriptEngine: Executing function name: " + EventName);
#endif
// Found
ev.Invoke(m_Script, args);

View File

@ -228,14 +228,14 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
try
{
///cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined
///#if DEBUG
/// eventQueueManager.m_ScriptEngine.Log.Debug("[" + ScriptEngineName + "]: " +
/// "Executing event:\r\n"
/// + "QIS.localID: " + QIS.localID
/// + ", QIS.itemID: " + QIS.itemID
/// + ", QIS.functionName: " +
/// QIS.functionName);
///#endif
#if DEBUG
eventQueueManager.m_ScriptEngine.Log.Debug("[" + ScriptEngineName + "]: " +
"Executing event:\r\n"
+ "QIS.localID: " + QIS.localID
+ ", QIS.itemID: " + QIS.itemID
+ ", QIS.functionName: " +
QIS.functionName);
#endif
LastExecutionStarted = DateTime.Now.Ticks;
KillCurrentScript = false;
InExecution = true;

View File

@ -127,9 +127,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
public void ReadConfig()
{
//#if DEBUG
// m_log.Debug("[" + ScriptEngineName + "]: Refreshing configuration for all modules");
//#endif
#if DEBUG
m_log.Debug("[" + ScriptEngineName + "]: Refreshing configuration for all modules");
#endif
RefreshConfigFileSeconds = ScriptConfigSource.GetInt("RefreshConfig", 30);
// Reload from disk? No!