mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
* Change LSL -> C# translated script console output to use the logger (at DEBUG level) rather than Console.Writeline
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user