From bcd68fb6c4a68129b4f2786016305b00085eeb54 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 26 Mar 2008 12:44:43 +0000 Subject: [PATCH] * More log messages in the region registration process for debug purposes. Some of these may be temporary --- .../Communications/OGS1/OGS1GridServices.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 21ca57338f..cf1ead1521 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs @@ -92,6 +92,10 @@ namespace OpenSim.Region.Communications.OGS1 // see IGridServices public RegionCommsListener RegisterRegion(RegionInfo regionInfo) { + m_log.DebugFormat( + "[OGS1 GRID SERVICES]: Attempting to register region {0} with grid at {1}", + regionInfo.RegionName, serversInfo.GridURL); + Hashtable GridParams = new Hashtable(); // Login / Authentication @@ -133,7 +137,7 @@ namespace OpenSim.Region.Communications.OGS1 catch (Exception ex) { m_log.ErrorFormat( - "Unable to connect to grid at {0}. Grid server not running? Exception {1}", + "[OGS1 GRID SERVICES]: Unable to connect to grid at {0}. Grid server not running? Exception {1}", serversInfo.GridURL, ex); throw(ex); @@ -145,7 +149,10 @@ namespace OpenSim.Region.Communications.OGS1 if (GridRespData.ContainsKey("error")) { string errorstring = (string) GridRespData["error"]; - m_log.ErrorFormat("Unable to connect to grid at {0}: {1}", serversInfo.GridURL, errorstring); + m_log.ErrorFormat( + "[OGS1 GRID SERVICES]: Unable to connect to grid at {0}: {1}", + serversInfo.GridURL, errorstring); + return null; } else @@ -159,6 +166,10 @@ namespace OpenSim.Region.Communications.OGS1 m_queuedGridSettings.Add("allow_forceful_banlines", "FALSE"); } } + + m_log.InfoFormat( + "[OGS1 GRID SERVICES]: Region {0} successfully registered with grid at {1}", + regionInfo.RegionName, serversInfo.GridURL); } return m_localBackend.RegisterRegion(regionInfo); }