From 726ca72c479dc5c9510631e675c932f1331e92bb Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Sat, 19 Nov 2011 01:27:06 +0000 Subject: minor: Make HelloNeighbour messages more informative --- .../Neighbour/LocalNeighbourServiceConnector.cs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Neighbour/LocalNeighbourServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Neighbour/LocalNeighbourServiceConnector.cs index f71bf46..40cc536 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Neighbour/LocalNeighbourServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Neighbour/LocalNeighbourServiceConnector.cs @@ -25,11 +25,12 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using log4net; -using Nini.Config; using System; using System.Collections.Generic; using System.Reflection; +using log4net; +using Nini.Config; +using OpenMetaverse; using OpenSim.Framework; using OpenSim.Server.Base; using OpenSim.Region.Framework.Interfaces; @@ -119,10 +120,14 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Neighbour #region INeighbourService - public GridRegion HelloNeighbour(ulong regionHandle, RegionInfo thisRegion) + public OpenSim.Services.Interfaces.GridRegion HelloNeighbour(ulong regionHandle, RegionInfo thisRegion) { - m_log.DebugFormat("[NEIGHBOUR CONNECTOR]: HelloNeighbour from {0}, to {1}.", - thisRegion.RegionName, regionHandle); + uint x, y; + Utils.LongToUInts(regionHandle, out x, out y); + + m_log.DebugFormat("[NEIGHBOUR CONNECTOR]: HelloNeighbour from region {0} to region at {1}-{2}", + thisRegion.RegionName, x / Constants.RegionSize, y / Constants.RegionSize); + foreach (Scene s in m_Scenes) { if (s.RegionInfo.RegionHandle == regionHandle) -- cgit v1.1