* Change LSL -> C# translated script console output to use the logger (at DEBUG level) rather than Console.Writeline

0.6.0-stable
Justin Clarke Casey 2008-05-07 23:21:24 +00:00
parent be02107ea8
commit e49bdd2628
1 changed files with 7 additions and 4 deletions

View File

@ -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,9 +302,9 @@ 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);
}