More debugging

ThreadPoolClientBranch
Tedd Hansen 2008-01-19 21:16:22 +00:00
parent 65ea917d34
commit 9e9ba262f7
2 changed files with 8 additions and 10 deletions

View File

@ -127,7 +127,7 @@ namespace OpenSim.Region.Environment.LandManagement
} }
catch (Exception ex) catch (Exception ex)
{ {
MainLog.Instance.Verbose("LandManager", "IncomingLandObjectsFromStorage: Exception: " + ex.ToString() ); MainLog.Instance.Error("LandManager", "IncomingLandObjectsFromStorage: Exception: " + ex.ToString());
} }
} }
//foreach (LandData parcel in data) //foreach (LandData parcel in data)
@ -178,12 +178,14 @@ namespace OpenSim.Region.Environment.LandManagement
public Land addLandObject(Land new_land) public Land addLandObject(Land new_land)
{ {
// TODO: REMOVE (TEDD) // TODO: REMOVE (TEDD)
Console.WriteLine("addLandObject()"); MainLog.Instance.Verbose("LandManager", "addLandObject()");
lastLandLocalID++; lastLandLocalID++;
new_land.landData.localID = lastLandLocalID; new_land.landData.localID = lastLandLocalID;
landList.Add(lastLandLocalID, new_land.Copy()); landList.Add(lastLandLocalID, new_land.Copy());
// TODO: REMOVE (TEDD)
MainLog.Instance.Verbose("LandManager", "new_land.getLandBitmap()");
bool[,] landBitmap = new_land.getLandBitmap(); bool[,] landBitmap = new_land.getLandBitmap();
int x, y; int x, y;
for (x = 0; x < 64; x++) for (x = 0; x < 64; x++)
@ -196,8 +198,12 @@ namespace OpenSim.Region.Environment.LandManagement
} }
} }
} }
// TODO: REMOVE (TEDD)
MainLog.Instance.Verbose("LandManager", "forceUpdateLandInfo()");
landList[lastLandLocalID].forceUpdateLandInfo(); landList[lastLandLocalID].forceUpdateLandInfo();
MainLog.Instance.Verbose("LandManager", "TriggerLandObjectAdded");
m_scene.EventManager.TriggerLandObjectAdded(new_land, m_scene.RegionInfo.RegionID); m_scene.EventManager.TriggerLandObjectAdded(new_land, m_scene.RegionInfo.RegionID);
MainLog.Instance.Verbose("LandManager", "end of addLandObject()");
return new_land; return new_land;
} }

View File

@ -900,24 +900,16 @@ namespace OpenSim.Region.Environment.Scenes
public void loadAllLandObjectsFromStorage() public void loadAllLandObjectsFromStorage()
{ {
MainLog.Instance.Verbose("SCENE", "Loading land objects from storage"); MainLog.Instance.Verbose("SCENE", "Loading land objects from storage");
// TODO: REMOVE (TEDD)
MainLog.Instance.Verbose("SCENE", "LandObjLoad debug: DataStore.LoadLandObjects");
List<LandData> landData = m_storageManager.DataStore.LoadLandObjects(RegionInfo.RegionID); List<LandData> landData = m_storageManager.DataStore.LoadLandObjects(RegionInfo.RegionID);
if (landData.Count == 0) if (landData.Count == 0)
{ {
// TODO: REMOVE (TEDD)
MainLog.Instance.Verbose("SCENE", "LandObjLoad debug: NoLandDataFromStorage()");
m_LandManager.NoLandDataFromStorage(); m_LandManager.NoLandDataFromStorage();
} }
else else
{ {
// TODO: REMOVE (TEDD)
MainLog.Instance.Verbose("SCENE", "LandObjLoad debug: IncomingLandObjectsFromStorage(landData)");
m_LandManager.IncomingLandObjectsFromStorage(landData); m_LandManager.IncomingLandObjectsFromStorage(landData);
} }
// TODO: REMOVE (TEDD)
MainLog.Instance.Verbose("SCENE", "Done loading land objects from storage");
} }
#endregion #endregion