* Change LSL -> C# translated script console output to use the logger (at DEBUG level) rather than Console.Writeline
parent
be02107ea8
commit
e49bdd2628
|
@ -39,6 +39,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||||
{
|
{
|
||||||
public class Compiler
|
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.
|
// * Uses "LSL2Converter" to convert LSL to C# if necessary.
|
||||||
// * Compiles C#-code into an assembly
|
// * Compiles C#-code into an assembly
|
||||||
// * Returns assembly name ready for AppDomain load.
|
// * Returns assembly name ready for AppDomain load.
|
||||||
|
@ -299,10 +302,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
Console.WriteLine("\n\n\n");
|
m_log.Debug("[ScriptEngine.DotNetEngine]: Preparing to compile the following LSL to C# translated code");
|
||||||
Console.WriteLine(compileScript);
|
m_log.Debug("");
|
||||||
Console.WriteLine("\n\n\n");
|
m_log.Debug(compileScript);
|
||||||
|
|
||||||
return CompileFromDotNetText(compileScript, l);
|
return CompileFromDotNetText(compileScript, l);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue