From 43691e827070f630a2acfbb70d88c1aa555f3f4d Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Mon, 28 Dec 2009 11:46:34 -0800 Subject: Added some more log messages. This is beginning to work. --- .../CoreModules/ServiceConnectorsOut/Presence/PresenceDetector.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/PresenceDetector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/PresenceDetector.cs index 150728f..3ca5560 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/PresenceDetector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/PresenceDetector.cs @@ -26,17 +26,21 @@ */ using System; using System.Collections.Generic; +using System.Reflection; using OpenSim.Framework; using OpenSim.Region.Framework.Scenes; using OpenSim.Services.Interfaces; using OpenMetaverse; +using log4net; namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Presence { public class PresenceDetector { + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); + private IPresenceService m_PresenceService; public PresenceDetector(IPresenceService presenceservice) @@ -62,6 +66,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Presence public void OnMakeRootAgent(ScenePresence sp) { + m_log.DebugFormat("[PRESENCE DETECTOR]: Detected root presence {0} in {1}", sp.UUID, sp.Scene.RegionInfo.RegionName); m_PresenceService.ReportAgent(sp.ControllingClient.SessionId, sp.Scene.RegionInfo.RegionID, sp.AbsolutePosition, sp.Lookat); } -- cgit v1.1