diff options
author | Robert Adams | 2014-01-11 22:00:24 -0800 |
---|---|---|
committer | Robert Adams | 2014-01-11 22:00:24 -0800 |
commit | 1eea6fd452f2584d1f0948b15a02d3164b673618 (patch) | |
tree | f38c0bcb76ed8984d19e4bd240de373caaea0958 | |
parent | varregion: remove unnecessary border checking code in ScenePresence. (diff) | |
download | opensim-SC-1eea6fd452f2584d1f0948b15a02d3164b673618.zip opensim-SC-1eea6fd452f2584d1f0948b15a02d3164b673618.tar.gz opensim-SC-1eea6fd452f2584d1f0948b15a02d3164b673618.tar.bz2 opensim-SC-1eea6fd452f2584d1f0948b15a02d3164b673618.tar.xz |
varregion: Debug messages for region crossing debugging.
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs | 11 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs | 24 |
2 files changed, 23 insertions, 12 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs index a05e88c..f98337d 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs | |||
@@ -59,6 +59,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
59 | public class EventQueueGetModule : IEventQueue, INonSharedRegionModule | 59 | public class EventQueueGetModule : IEventQueue, INonSharedRegionModule |
60 | { | 60 | { |
61 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 61 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
62 | private static string LogHeader = "[EVENT QUEUE GET MODULE]"; | ||
62 | 63 | ||
63 | /// <value> | 64 | /// <value> |
64 | /// Debug level. | 65 | /// Debug level. |
@@ -714,7 +715,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
714 | public virtual void EnableSimulator(ulong handle, IPEndPoint endPoint, UUID avatarID, int regionSizeX, int regionSizeY) | 715 | public virtual void EnableSimulator(ulong handle, IPEndPoint endPoint, UUID avatarID, int regionSizeX, int regionSizeY) |
715 | { | 716 | { |
716 | m_log.DebugFormat("{0} EnableSimulator. handle={1}, avatarID={2}, regionSize={3},{4}>", | 717 | m_log.DebugFormat("{0} EnableSimulator. handle={1}, avatarID={2}, regionSize={3},{4}>", |
717 | "[EVENT QUEUE GET MODULE]", handle, avatarID, regionSizeX, regionSizeY); | 718 | LogHeader, handle, avatarID, regionSizeX, regionSizeY); |
718 | 719 | ||
719 | OSD item = EventQueueHelper.EnableSimulator(handle, endPoint, regionSizeX, regionSizeY); | 720 | OSD item = EventQueueHelper.EnableSimulator(handle, endPoint, regionSizeX, regionSizeY); |
720 | Enqueue(item, avatarID); | 721 | Enqueue(item, avatarID); |
@@ -724,7 +725,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
724 | ulong regionHandle, int regionSizeX, int regionSizeY) | 725 | ulong regionHandle, int regionSizeX, int regionSizeY) |
725 | { | 726 | { |
726 | m_log.DebugFormat("{0} EstablishAgentCommunication. handle={1}, avatarID={2}, regionSize={3},{4}>", | 727 | m_log.DebugFormat("{0} EstablishAgentCommunication. handle={1}, avatarID={2}, regionSize={3},{4}>", |
727 | "[EVENT QUEUE GET MODULE]", regionHandle, avatarID, regionSizeX, regionSizeY); | 728 | LogHeader, regionHandle, avatarID, regionSizeX, regionSizeY); |
728 | OSD item = EventQueueHelper.EstablishAgentCommunication(avatarID, endPoint.ToString(), capsPath, regionHandle, regionSizeX, regionSizeY); | 729 | OSD item = EventQueueHelper.EstablishAgentCommunication(avatarID, endPoint.ToString(), capsPath, regionHandle, regionSizeX, regionSizeY); |
729 | Enqueue(item, avatarID); | 730 | Enqueue(item, avatarID); |
730 | } | 731 | } |
@@ -734,8 +735,8 @@ namespace OpenSim.Region.ClientStack.Linden | |||
734 | uint locationID, uint flags, string capsURL, | 735 | uint locationID, uint flags, string capsURL, |
735 | UUID avatarID, int regionSizeX, int regionSizeY) | 736 | UUID avatarID, int regionSizeX, int regionSizeY) |
736 | { | 737 | { |
737 | m_log.DebugFormat("{0} TeleportFinishEvent. handle={1}, avatarID={2}, regionSize={3},{4}>", | 738 | m_log.DebugFormat("{0} TeleportFinishEvent. handle={1}, avatarID={2}, regionSize=<{3},{4}>", |
738 | "[EVENT QUEUE GET MODULE]", regionHandle, avatarID, regionSizeX, regionSizeY); | 739 | LogHeader, regionHandle, avatarID, regionSizeX, regionSizeY); |
739 | 740 | ||
740 | OSD item = EventQueueHelper.TeleportFinishEvent(regionHandle, simAccess, regionExternalEndPoint, | 741 | OSD item = EventQueueHelper.TeleportFinishEvent(regionHandle, simAccess, regionExternalEndPoint, |
741 | locationID, flags, capsURL, avatarID, regionSizeX, regionSizeY); | 742 | locationID, flags, capsURL, avatarID, regionSizeX, regionSizeY); |
@@ -747,7 +748,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
747 | string capsURL, UUID avatarID, UUID sessionID, int regionSizeX, int regionSizeY) | 748 | string capsURL, UUID avatarID, UUID sessionID, int regionSizeX, int regionSizeY) |
748 | { | 749 | { |
749 | m_log.DebugFormat("{0} CrossRegion. handle={1}, avatarID={2}, regionSize={3},{4}>", | 750 | m_log.DebugFormat("{0} CrossRegion. handle={1}, avatarID={2}, regionSize={3},{4}>", |
750 | "[EVENT QUEUE GET MODULE]", handle, avatarID, regionSizeX, regionSizeY); | 751 | LogHeader, handle, avatarID, regionSizeX, regionSizeY); |
751 | 752 | ||
752 | OSD item = EventQueueHelper.CrossRegion(handle, pos, lookAt, newRegionExternalEndPoint, | 753 | OSD item = EventQueueHelper.CrossRegion(handle, pos, lookAt, newRegionExternalEndPoint, |
753 | capsURL, avatarID, sessionID, regionSizeX, regionSizeY); | 754 | capsURL, avatarID, sessionID, regionSizeX, regionSizeY); |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs index 277293a..3b38c71 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs | |||
@@ -48,6 +48,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
48 | private static readonly ILog m_log = | 48 | private static readonly ILog m_log = |
49 | LogManager.GetLogger( | 49 | LogManager.GetLogger( |
50 | MethodBase.GetCurrentMethod().DeclaringType); | 50 | MethodBase.GetCurrentMethod().DeclaringType); |
51 | private static string LogHeader = "[LOCAL GRID SERVICE CONNECTOR]"; | ||
51 | 52 | ||
52 | private IGridService m_GridService; | 53 | private IGridService m_GridService; |
53 | private Dictionary<UUID, RegionCache> m_LocalCache = new Dictionary<UUID, RegionCache>(); | 54 | private Dictionary<UUID, RegionCache> m_LocalCache = new Dictionary<UUID, RegionCache>(); |
@@ -56,12 +57,12 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
56 | 57 | ||
57 | public LocalGridServicesConnector() | 58 | public LocalGridServicesConnector() |
58 | { | 59 | { |
59 | m_log.Debug("[LOCAL GRID SERVICE CONNECTOR]: LocalGridServicesConnector no parms."); | 60 | m_log.DebugFormat("{0} LocalGridServicesConnector no parms.", LogHeader); |
60 | } | 61 | } |
61 | 62 | ||
62 | public LocalGridServicesConnector(IConfigSource source) | 63 | public LocalGridServicesConnector(IConfigSource source) |
63 | { | 64 | { |
64 | m_log.Debug("[LOCAL GRID SERVICE CONNECTOR]: LocalGridServicesConnector instantiated directly."); | 65 | m_log.DebugFormat("{0} LocalGridServicesConnector instantiated directly.", LogHeader); |
65 | InitialiseService(source); | 66 | InitialiseService(source); |
66 | } | 67 | } |
67 | 68 | ||
@@ -197,7 +198,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
197 | // be the base coordinate of the region. | 198 | // be the base coordinate of the region. |
198 | public GridRegion GetRegionByPosition(UUID scopeID, int x, int y) | 199 | public GridRegion GetRegionByPosition(UUID scopeID, int x, int y) |
199 | { | 200 | { |
200 | m_log.DebugFormat("{0} GetRegionByPosition. pos=<{1},{2}>", "[LOCAL GRID SERVICE CONNECTOR", x, y); | ||
201 | GridRegion region = null; | 201 | GridRegion region = null; |
202 | 202 | ||
203 | // First see if it's a neighbour, even if it isn't on this sim. | 203 | // First see if it's a neighbour, even if it isn't on this sim. |
@@ -210,15 +210,25 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
210 | region = rcache.GetRegionByPosition(x, y); | 210 | region = rcache.GetRegionByPosition(x, y); |
211 | if (region != null) | 211 | if (region != null) |
212 | { | 212 | { |
213 | m_log.DebugFormat("{0} GetRegionByPosition. Found region {1}. Pos=<{2},{3}>", | 213 | // m_log.DebugFormat("{0} GetRegionByPosition. Found region {1} in cache. Pos=<{2},{3}>", |
214 | "[LOCAL GRID SERVICE CONNECTOR", region.RegionName, x, y); | 214 | // LogHeader, region.RegionName, x, y); |
215 | return region; | 215 | break; |
216 | } | 216 | } |
217 | } | 217 | } |
218 | } | 218 | } |
219 | 219 | ||
220 | // Then try on this sim (may be a lookup in DB if this is using MySql). | 220 | // Then try on this sim (may be a lookup in DB if this is using MySql). |
221 | return m_GridService.GetRegionByPosition(scopeID, x, y); | 221 | if (region == null) |
222 | { | ||
223 | region = m_GridService.GetRegionByPosition(scopeID, x, y); | ||
224 | if (region == null) | ||
225 | m_log.DebugFormat("{0} GetRegionByPosition. Region not found by grid service. Pos=<{1},{2}>", | ||
226 | LogHeader, x, y); | ||
227 | else | ||
228 | m_log.DebugFormat("{0} GetRegionByPosition. Requested region {1} from grid service. Pos=<{2},{3}>", | ||
229 | LogHeader, region.RegionName, x, y); | ||
230 | } | ||
231 | return region; | ||
222 | } | 232 | } |
223 | 233 | ||
224 | public GridRegion GetRegionByName(UUID scopeID, string regionName) | 234 | public GridRegion GetRegionByName(UUID scopeID, string regionName) |