aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-05-07 23:21:24 +0000
committerJustin Clarke Casey2008-05-07 23:21:24 +0000
commite49bdd26288b026dfa31864ec2127ecf65365cb3 (patch)
treec7088491e29363609d69abdf20f15eb42eb6e1c1
parent* Increasing ScenePresences locking to prevent race conditions such as those ... (diff)
downloadopensim-SC-e49bdd26288b026dfa31864ec2127ecf65365cb3.zip
opensim-SC-e49bdd26288b026dfa31864ec2127ecf65365cb3.tar.gz
opensim-SC-e49bdd26288b026dfa31864ec2127ecf65365cb3.tar.bz2
opensim-SC-e49bdd26288b026dfa31864ec2127ecf65365cb3.tar.xz
* Change LSL -> C# translated script console output to use the logger (at DEBUG level) rather than Console.Writeline
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs
index 944f9e7..1d71182 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs
@@ -39,6 +39,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
39{ 39{
40 public class Compiler 40 public class Compiler
41 { 41 {
42 private static readonly log4net.ILog m_log
43 = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
44
42 // * Uses "LSL2Converter" to convert LSL to C# if necessary. 45 // * Uses "LSL2Converter" to convert LSL to C# if necessary.
43 // * Compiles C#-code into an assembly 46 // * Compiles C#-code into an assembly
44 // * Returns assembly name ready for AppDomain load. 47 // * Returns assembly name ready for AppDomain load.
@@ -299,10 +302,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
299 break; 302 break;
300 } 303 }
301 304
302 Console.WriteLine("\n\n\n"); 305 m_log.Debug("[ScriptEngine.DotNetEngine]: Preparing to compile the following LSL to C# translated code");
303 Console.WriteLine(compileScript); 306 m_log.Debug("");
304 Console.WriteLine("\n\n\n"); 307 m_log.Debug(compileScript);
305 308
306 return CompileFromDotNetText(compileScript, l); 309 return CompileFromDotNetText(compileScript, l);
307 } 310 }
308 311