From a31792ee5cb1ce619f21f5b428926c4709c3f14b Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 6 Jan 2009 21:39:55 +0000 Subject: * prune and regrade log messages relating to client login and logout --- .../Environment/Modules/World/Wind/WindModule.cs | 48 ++++------------------ 1 file changed, 8 insertions(+), 40 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/World/Wind') diff --git a/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs b/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs index 52eb6e7..6b06fbd 100644 --- a/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs @@ -37,7 +37,6 @@ namespace OpenSim.Region.Environment.Modules { public class WindModule : IWindModule { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); private int m_frame = 0; @@ -46,40 +45,14 @@ namespace OpenSim.Region.Environment.Modules private Scene m_scene = null; private bool ready = false; private Vector2[] windSpeeds = new Vector2[16 * 16]; - private Dictionary m_rootAgents = new Dictionary(); - - // Current time in elpased seconds since Jan 1st 1970 - - + public void Initialise(Scene scene, IConfigSource config) { - m_log.Debug("[WIND] Initializing"); - m_scene = scene; - m_frame = 0; - - - // Align ticks with Second Life - - - - // Just in case they don't have the stanzas - try - { - - } - catch (Exception e) - { - m_log.Debug("[WIND] Configuration access failed, using defaults. Reason: " + e.Message); - - } - - - scene.EventManager.OnFrame += WindUpdate; - + scene.EventManager.OnFrame += WindUpdate; scene.EventManager.OnMakeChildAgent += MakeChildAgent; scene.EventManager.OnAvatarEnteringNewParcel += AvatarEnteringParcel; scene.EventManager.OnClientClosed += ClientLoggedOut; @@ -88,9 +61,6 @@ namespace OpenSim.Region.Environment.Modules GenWindPos(); ready = true; - - - } public void PostInitialise() @@ -125,13 +95,12 @@ namespace OpenSim.Region.Environment.Modules public void WindToClient(IClientAPI client) { - if (ready) - { - //if (!sunFixed) - //GenWindPos(); // Generate shared values once - client.SendWindData(windSpeeds); - m_log.Debug("[WIND] Initial update for new client"); - } + if (ready) + { + //if (!sunFixed) + //GenWindPos(); // Generate shared values once + client.SendWindData(windSpeeds); + } } public void WindUpdate() @@ -199,7 +168,6 @@ namespace OpenSim.Region.Environment.Modules if (m_rootAgents.ContainsKey(AgentId)) { m_rootAgents.Remove(AgentId); - m_log.Info("[WIND]: Removing " + AgentId + ". Agent logged out."); } } } -- cgit v1.1