From e49bdd26288b026dfa31864ec2127ecf65365cb3 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 7 May 2008 23:21:24 +0000 Subject: [PATCH] * Change LSL -> C# translated script console output to use the logger (at DEBUG level) rather than Console.Writeline --- .../DotNetEngine/Compiler/LSL/Compiler.cs | 11 +++++++---- 1 file 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 944f9e75d4..1d711823d7 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 { public class Compiler { + private static readonly log4net.ILog m_log + = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + // * Uses "LSL2Converter" to convert LSL to C# if necessary. // * Compiles C#-code into an assembly // * Returns assembly name ready for AppDomain load. @@ -299,10 +302,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL break; } - Console.WriteLine("\n\n\n"); - Console.WriteLine(compileScript); - Console.WriteLine("\n\n\n"); - + m_log.Debug("[ScriptEngine.DotNetEngine]: Preparing to compile the following LSL to C# translated code"); + m_log.Debug(""); + m_log.Debug(compileScript); + return CompileFromDotNetText(compileScript, l); }