diff options
author | Charles Krinke | 2008-02-08 01:42:56 +0000 |
---|---|---|
committer | Charles Krinke | 2008-02-08 01:42:56 +0000 |
commit | 2fb541cb2a586bb7fd090fd79fe52c8ea437f316 (patch) | |
tree | 52a320c02e4327ae76b5d346b3dcc45bb10032d1 /OpenSim/Region/ScriptEngine/Common/ScriptEngineBase | |
parent | * Updated the readme for pCampBot with info from Fly-Man- (diff) | |
download | opensim-SC-2fb541cb2a586bb7fd090fd79fe52c8ea437f316.zip opensim-SC-2fb541cb2a586bb7fd090fd79fe52c8ea437f316.tar.gz opensim-SC-2fb541cb2a586bb7fd090fd79fe52c8ea437f316.tar.bz2 opensim-SC-2fb541cb2a586bb7fd090fd79fe52c8ea437f316.tar.xz |
Make timer events from scripts a little less chatty.
DEBUG is defined by default in the Linux build.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs index 12d26fc..641453e 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs | |||
@@ -295,18 +295,20 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
295 | /// <param name="args">Arguments to pass to function</param> | 295 | /// <param name="args">Arguments to pass to function</param> |
296 | internal void ExecuteEvent(uint localID, LLUUID itemID, string FunctionName, EventQueueManager.Queue_llDetectParams_Struct qParams, object[] args) | 296 | internal void ExecuteEvent(uint localID, LLUUID itemID, string FunctionName, EventQueueManager.Queue_llDetectParams_Struct qParams, object[] args) |
297 | { | 297 | { |
298 | #if DEBUG | 298 | //cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined |
299 | Console.WriteLine("ScriptEngine: Inside ExecuteEvent for event " + FunctionName); | 299 | ///#if DEBUG |
300 | #endif | 300 | /// Console.WriteLine("ScriptEngine: Inside ExecuteEvent for event " + FunctionName); |
301 | ///#endif | ||
301 | // Execute a function in the script | 302 | // Execute a function in the script |
302 | //m_scriptEngine.Log.Info("[" + ScriptEngineName + "]: Executing Function localID: " + localID + ", itemID: " + itemID + ", FunctionName: " + FunctionName); | 303 | //m_scriptEngine.Log.Info("[" + ScriptEngineName + "]: Executing Function localID: " + localID + ", itemID: " + itemID + ", FunctionName: " + FunctionName); |
303 | //ScriptBaseInterface Script = (ScriptBaseInterface)GetScript(localID, itemID); | 304 | //ScriptBaseInterface Script = (ScriptBaseInterface)GetScript(localID, itemID); |
304 | IScript Script = GetScript(localID, itemID); | 305 | IScript Script = GetScript(localID, itemID); |
305 | if (Script == null) | 306 | if (Script == null) |
306 | return; | 307 | return; |
307 | #if DEBUG | 308 | //cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined |
308 | Console.WriteLine("ScriptEngine: Executing event: " + FunctionName); | 309 | ///#if DEBUG |
309 | #endif | 310 | /// Console.WriteLine("ScriptEngine: Executing event: " + FunctionName); |
311 | ///#endif | ||
310 | // Must be done in correct AppDomain, so leaving it up to the script itself | 312 | // Must be done in correct AppDomain, so leaving it up to the script itself |
311 | Script.llDetectParams = qParams; | 313 | Script.llDetectParams = qParams; |
312 | Script.Exec.ExecuteEvent(FunctionName, args); | 314 | Script.Exec.ExecuteEvent(FunctionName, args); |