More debug messages.

arthursv
Diva Canto 2009-08-14 10:29:29 -07:00
parent 70d7c97e94
commit c56e51a6e3
1 changed files with 7 additions and 0 deletions

View File

@ -105,6 +105,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory
public void AddRegion(Scene scene)
{
m_log.Debug("[XXXX] Adding scene " + scene.RegionInfo.RegionName);
m_Scene = scene;
if (!m_Enabled)
@ -314,6 +315,12 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory
private UUID GetSessionID(UUID userID)
{
if (m_Scene == null)
m_log.Debug("[INVENTORY CONNECTOR]: OOPS! scene is null");
if (m_Scene.CommsManager.UserProfileCacheService == null)
m_log.Debug("[INVENTORY CONNECTOR]: OOPS! UserProfileCacheService is null");
CachedUserInfo uinfo = m_Scene.CommsManager.UserProfileCacheService.GetUserDetails(userID);
if (uinfo != null)
return uinfo.SessionID;