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. --- OpenSim/Services/PresenceService/PresenceService.cs | 10 ++++++---- OpenSim/Services/PresenceService/PresenceServiceBase.cs | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'OpenSim/Services/PresenceService') diff --git a/OpenSim/Services/PresenceService/PresenceService.cs b/OpenSim/Services/PresenceService/PresenceService.cs index fe36bd0..adbf430 100644 --- a/OpenSim/Services/PresenceService/PresenceService.cs +++ b/OpenSim/Services/PresenceService/PresenceService.cs @@ -41,13 +41,14 @@ namespace OpenSim.Services.PresenceService { public class PresenceService : PresenceServiceBase, IPresenceService { -// private static readonly ILog m_log = -// LogManager.GetLogger( -// MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = + LogManager.GetLogger( + MethodBase.GetCurrentMethod().DeclaringType); public PresenceService(IConfigSource config) : base(config) { + m_log.Debug("[PRESENCE SERVICE]: Starting presence service"); } public bool LoginAgent(string userID, UUID sessionID, @@ -93,8 +94,9 @@ namespace OpenSim.Services.PresenceService public bool ReportAgent(UUID sessionID, UUID regionID, Vector3 position, Vector3 lookAt) { + m_log.DebugFormat("[PRESENCE SERVICE]: ReportAgent with session {0} in region {1}", sessionID, regionID); return m_Database.ReportAgent(sessionID, regionID, - position.ToString(), lookAt.ToString()); + position.ToString(), lookAt.ToString()); } public PresenceInfo GetAgent(UUID sessionID) diff --git a/OpenSim/Services/PresenceService/PresenceServiceBase.cs b/OpenSim/Services/PresenceService/PresenceServiceBase.cs index 41e2d9c..3ca70c1 100644 --- a/OpenSim/Services/PresenceService/PresenceServiceBase.cs +++ b/OpenSim/Services/PresenceService/PresenceServiceBase.cs @@ -44,7 +44,7 @@ namespace OpenSim.Services.PresenceService { string dllName = String.Empty; string connString = String.Empty; - string realm = "Presence"; + string realm = "presence"; // // Try reading the [DatabaseService] section, if it exists -- cgit v1.1