From 9e9ba262f7e32e322d6026b7693503f242896eb0 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Sat, 19 Jan 2008 21:16:22 +0000 Subject: More debugging --- OpenSim/Region/Environment/LandManagement/LandManager.cs | 10 ++++++++-- OpenSim/Region/Environment/Scenes/Scene.cs | 8 -------- 2 files changed, 8 insertions(+), 10 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/LandManagement/LandManager.cs b/OpenSim/Region/Environment/LandManagement/LandManager.cs index bdb50cc..155c91f 100644 --- a/OpenSim/Region/Environment/LandManagement/LandManager.cs +++ b/OpenSim/Region/Environment/LandManagement/LandManager.cs @@ -127,7 +127,7 @@ namespace OpenSim.Region.Environment.LandManagement } catch (Exception ex) { - MainLog.Instance.Verbose("LandManager", "IncomingLandObjectsFromStorage: Exception: " + ex.ToString() ); + MainLog.Instance.Error("LandManager", "IncomingLandObjectsFromStorage: Exception: " + ex.ToString()); } } //foreach (LandData parcel in data) @@ -178,12 +178,14 @@ namespace OpenSim.Region.Environment.LandManagement public Land addLandObject(Land new_land) { // TODO: REMOVE (TEDD) - Console.WriteLine("addLandObject()"); + MainLog.Instance.Verbose("LandManager", "addLandObject()"); lastLandLocalID++; new_land.landData.localID = lastLandLocalID; landList.Add(lastLandLocalID, new_land.Copy()); + // TODO: REMOVE (TEDD) + MainLog.Instance.Verbose("LandManager", "new_land.getLandBitmap()"); bool[,] landBitmap = new_land.getLandBitmap(); int x, y; 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(); + MainLog.Instance.Verbose("LandManager", "TriggerLandObjectAdded"); m_scene.EventManager.TriggerLandObjectAdded(new_land, m_scene.RegionInfo.RegionID); + MainLog.Instance.Verbose("LandManager", "end of addLandObject()"); return new_land; } diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index f3564d1..9e13fe7 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -900,24 +900,16 @@ namespace OpenSim.Region.Environment.Scenes public void loadAllLandObjectsFromStorage() { MainLog.Instance.Verbose("SCENE", "Loading land objects from storage"); - // TODO: REMOVE (TEDD) - MainLog.Instance.Verbose("SCENE", "LandObjLoad debug: DataStore.LoadLandObjects"); List landData = m_storageManager.DataStore.LoadLandObjects(RegionInfo.RegionID); if (landData.Count == 0) { - // TODO: REMOVE (TEDD) - MainLog.Instance.Verbose("SCENE", "LandObjLoad debug: NoLandDataFromStorage()"); m_LandManager.NoLandDataFromStorage(); } else { - // TODO: REMOVE (TEDD) - MainLog.Instance.Verbose("SCENE", "LandObjLoad debug: IncomingLandObjectsFromStorage(landData)"); m_LandManager.IncomingLandObjectsFromStorage(landData); } - // TODO: REMOVE (TEDD) - MainLog.Instance.Verbose("SCENE", "Done loading land objects from storage"); } #endregion -- cgit v1.1