From 8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 22 Feb 2009 20:52:55 +0000 Subject: 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. --- OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 27c22eb..1470191 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -320,7 +320,7 @@ namespace OpenSim.Region.Framework.Scenes protected SceneObjectPart(SerializationInfo info, StreamingContext context) { - //System.Console.WriteLine("SceneObjectPart Deserialize BGN"); + //m_log.Debug("SceneObjectPart Deserialize BGN"); m_TextureAnimation = new byte[0]; m_particleSystem = new byte[0]; if (info == null) @@ -333,7 +333,7 @@ namespace OpenSim.Region.Framework.Scenes m_ids = (List)info.GetValue("m_ids", typeof(List)); */ - //System.Console.WriteLine("SceneObjectPart Deserialize END"); + //m_log.Debug("SceneObjectPart Deserialize END"); Rezzed = DateTime.Now; m_inventory = new SceneObjectPartInventory(this); @@ -534,7 +534,7 @@ namespace OpenSim.Region.Framework.Scenes } catch (Exception e) { - Console.WriteLine("[SCENEOBJECTPART]: GROUP POSITION. " + e.Message); + m_log.Error("[SCENEOBJECTPART]: GROUP POSITION. " + e.Message); } } @@ -619,7 +619,7 @@ namespace OpenSim.Region.Framework.Scenes } catch (Exception ex) { - Console.WriteLine("[SCENEOBJECTPART]: ROTATIONOFFSET" + ex.Message); + m_log.Error("[SCENEOBJECTPART]: ROTATIONOFFSET" + ex.Message); } } @@ -1121,13 +1121,13 @@ if (m_shape != null) { // PrimFlags prevflag = Flags; if ((ObjectFlags & (uint) flag) == 0) { - //Console.WriteLine("Adding flag: " + ((PrimFlags) flag).ToString()); + //m_log.Debug("Adding flag: " + ((PrimFlags) flag).ToString()); _flags |= flag; if (flag == PrimFlags.TemporaryOnRez) ResetExpire(); } - // System.Console.WriteLine("Aprev: " + prevflag.ToString() + " curr: " + Flags.ToString()); + // m_log.Debug("Aprev: " + prevflag.ToString() + " curr: " + Flags.ToString()); } /// @@ -2197,10 +2197,10 @@ if (m_shape != null) { // PrimFlags prevflag = Flags; if ((ObjectFlags & (uint) flag) != 0) { - //Console.WriteLine("Removing flag: " + ((PrimFlags)flag).ToString()); + //m_log.Debug("Removing flag: " + ((PrimFlags)flag).ToString()); _flags &= ~flag; } - //System.Console.WriteLine("prev: " + prevflag.ToString() + " curr: " + Flags.ToString()); + //m_log.Debug("prev: " + prevflag.ToString() + " curr: " + Flags.ToString()); //ScheduleFullUpdate(); } @@ -3552,7 +3552,7 @@ if (m_shape != null) { { RemFlag(PrimFlags.TemporaryOnRez); } - // System.Console.WriteLine("Update: PHY:" + UsePhysics.ToString() + ", T:" + IsTemporary.ToString() + ", PHA:" + IsPhantom.ToString() + " S:" + CastsShadows.ToString()); + // m_log.Debug("Update: PHY:" + UsePhysics.ToString() + ", T:" + IsTemporary.ToString() + ", PHA:" + IsPhantom.ToString() + " S:" + CastsShadows.ToString()); ParentGroup.HasGroupChanged = true; ScheduleFullUpdate(); -- cgit v1.1