Make timer events from scripts a little less chatty.
DEBUG is defined by default in the Linux build.ThreadPoolClientBranch
parent
121789f54a
commit
2fb541cb2a
|
@ -82,9 +82,10 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
|
|
||||||
string EventName = m_Script.State() + "_event_" + FunctionName;
|
string EventName = m_Script.State() + "_event_" + FunctionName;
|
||||||
|
|
||||||
#if DEBUG
|
//cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined
|
||||||
Console.WriteLine("ScriptEngine: Script event function name: " + EventName);
|
///#if DEBUG
|
||||||
#endif
|
/// Console.WriteLine("ScriptEngine: Script event function name: " + EventName);
|
||||||
|
///#endif
|
||||||
|
|
||||||
//type.InvokeMember(EventName, BindingFlags.InvokeMethod, null, m_Script, args);
|
//type.InvokeMember(EventName, BindingFlags.InvokeMethod, null, m_Script, args);
|
||||||
|
|
||||||
|
@ -116,9 +117,10 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG
|
//cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined
|
||||||
Console.WriteLine("ScriptEngine: Executing function name: " + EventName);
|
///#if DEBUG
|
||||||
#endif
|
/// Console.WriteLine("ScriptEngine: Executing function name: " + EventName);
|
||||||
|
///#endif
|
||||||
// Found
|
// Found
|
||||||
//try
|
//try
|
||||||
//{
|
//{
|
||||||
|
|
|
@ -295,18 +295,20 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
|
||||||
/// <param name="args">Arguments to pass to function</param>
|
/// <param name="args">Arguments to pass to function</param>
|
||||||
internal void ExecuteEvent(uint localID, LLUUID itemID, string FunctionName, EventQueueManager.Queue_llDetectParams_Struct qParams, object[] args)
|
internal void ExecuteEvent(uint localID, LLUUID itemID, string FunctionName, EventQueueManager.Queue_llDetectParams_Struct qParams, object[] args)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
//cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined
|
||||||
Console.WriteLine("ScriptEngine: Inside ExecuteEvent for event " + FunctionName);
|
///#if DEBUG
|
||||||
#endif
|
/// Console.WriteLine("ScriptEngine: Inside ExecuteEvent for event " + FunctionName);
|
||||||
|
///#endif
|
||||||
// Execute a function in the script
|
// Execute a function in the script
|
||||||
//m_scriptEngine.Log.Info("[" + ScriptEngineName + "]: Executing Function localID: " + localID + ", itemID: " + itemID + ", FunctionName: " + FunctionName);
|
//m_scriptEngine.Log.Info("[" + ScriptEngineName + "]: Executing Function localID: " + localID + ", itemID: " + itemID + ", FunctionName: " + FunctionName);
|
||||||
//ScriptBaseInterface Script = (ScriptBaseInterface)GetScript(localID, itemID);
|
//ScriptBaseInterface Script = (ScriptBaseInterface)GetScript(localID, itemID);
|
||||||
IScript Script = GetScript(localID, itemID);
|
IScript Script = GetScript(localID, itemID);
|
||||||
if (Script == null)
|
if (Script == null)
|
||||||
return;
|
return;
|
||||||
#if DEBUG
|
//cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined
|
||||||
Console.WriteLine("ScriptEngine: Executing event: " + FunctionName);
|
///#if DEBUG
|
||||||
#endif
|
/// Console.WriteLine("ScriptEngine: Executing event: " + FunctionName);
|
||||||
|
///#endif
|
||||||
// Must be done in correct AppDomain, so leaving it up to the script itself
|
// Must be done in correct AppDomain, so leaving it up to the script itself
|
||||||
Script.llDetectParams = qParams;
|
Script.llDetectParams = qParams;
|
||||||
Script.Exec.ExecuteEvent(FunctionName, args);
|
Script.Exec.ExecuteEvent(FunctionName, args);
|
||||||
|
|
Loading…
Reference in New Issue