More debug, same issue

cpu-performance
Diva Canto 2013-07-04 11:36:10 -07:00
parent 0cc0a2485c
commit ec9ffbb89a
2 changed files with 5 additions and 3 deletions

View File

@ -523,15 +523,17 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
foreach (PresenceInfo friendSession in friendSessions) foreach (PresenceInfo friendSession in friendSessions)
{ {
// let's guard against sessions-gone-bad // let's guard against sessions-gone-bad
if (friendSession.RegionID != UUID.Zero) if (friendSession != null && friendSession.RegionID != UUID.Zero)
{ {
m_log.DebugFormat("[FRIENDS]: Get region {0}", friendSession.RegionID);
GridRegion region = GridService.GetRegionByUUID(m_Scenes[0].RegionInfo.ScopeID, friendSession.RegionID); GridRegion region = GridService.GetRegionByUUID(m_Scenes[0].RegionInfo.ScopeID, friendSession.RegionID);
m_log.DebugFormat("[FRIENDS]: Remote Notify to region {0}", (region == null ? "null" : region.RegionName));
if (region != null) if (region != null)
{ {
m_FriendsSimConnector.StatusNotify(region, userID, friendSession.UserID, online); m_FriendsSimConnector.StatusNotify(region, userID, friendSession.UserID, online);
} }
} }
else
m_log.DebugFormat("[FRIENDS]: friend session is null or the region is UUID.Zero");
} }
} }

View File

@ -244,7 +244,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection, UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment) bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment)
{ {
m_log.DebugFormat("[HGScene] RezObject itemID={0} fromTaskID={1}", itemID, fromTaskID); m_log.DebugFormat("[HGScene]: RezObject itemID={0} fromTaskID={1}", itemID, fromTaskID);
//if (fromTaskID.Equals(UUID.Zero)) //if (fromTaskID.Equals(UUID.Zero))
//{ //{