diff options
author | Charles Krinke | 2009-02-22 20:52:55 +0000 |
---|---|---|
committer | Charles Krinke | 2009-02-22 20:52:55 +0000 |
commit | 8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49 (patch) | |
tree | 96a24a49de82056060dd9b7bab0cb209d5f1a129 /OpenSim/Region/ScriptEngine/Shared/Instance | |
parent | Allow delivery of object messages gridwide (diff) | |
download | opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.zip opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.gz opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.bz2 opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.xz |
Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:
* Added log4net dependency to physxplugin in prebuild.xml.
* Added missing m_log fields to classes.
* Replaced Console.WriteLine with appropriate m_log.Xxxx
* Tested that nant test target runs succesfully.
* Tested that local opensim sandbox starts up without errors.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Instance')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index c1d6f8e..bcd4ccd 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |||
@@ -451,11 +451,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
451 | 451 | ||
452 | public void VarDump(Dictionary<string, object> vars) | 452 | public void VarDump(Dictionary<string, object> vars) |
453 | { | 453 | { |
454 | Console.WriteLine("Variable dump for script {0}", m_ItemID.ToString()); | 454 | m_log.Info("Variable dump for script "+ m_ItemID.ToString()); |
455 | foreach (KeyValuePair<string, object> v in vars) | 455 | foreach (KeyValuePair<string, object> v in vars) |
456 | { | 456 | { |
457 | Console.WriteLine("Variable: {0} = '{1}'", v. Key, | 457 | m_log.Info("Variable: "+v.Key+" = "+v.Value.ToString()); |
458 | v.Value.ToString()); | ||
459 | } | 458 | } |
460 | } | 459 | } |
461 | 460 | ||
@@ -881,7 +880,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
881 | } | 880 | } |
882 | catch(Exception e) | 881 | catch(Exception e) |
883 | { | 882 | { |
884 | Console.WriteLine("Unable to save xml\n"+e.ToString()); | 883 | m_log.Error("Unable to save xml\n"+e.ToString()); |
885 | } | 884 | } |
886 | if (!File.Exists(Path.Combine(Path.GetDirectoryName(assembly), m_ItemID.ToString() + ".state"))) | 885 | if (!File.Exists(Path.Combine(Path.GetDirectoryName(assembly), m_ItemID.ToString() + ".state"))) |
887 | { | 886 | { |