aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.RegionServer/world
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/world')
-rw-r--r--OpenSim/OpenSim.RegionServer/world/Avatar.cs10
-rw-r--r--OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs4
-rw-r--r--OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs2
-rw-r--r--OpenSim/OpenSim.RegionServer/world/World.cs61
-rw-r--r--OpenSim/OpenSim.RegionServer/world/WorldBase.cs5
5 files changed, 42 insertions, 40 deletions
diff --git a/OpenSim/OpenSim.RegionServer/world/Avatar.cs b/OpenSim/OpenSim.RegionServer/world/Avatar.cs
index f9f3cc4..f7a5766 100644
--- a/OpenSim/OpenSim.RegionServer/world/Avatar.cs
+++ b/OpenSim/OpenSim.RegionServer/world/Avatar.cs
@@ -46,7 +46,7 @@ namespace OpenSim.world
46 m_regionTerraform = regionTerraform; 46 m_regionTerraform = regionTerraform;
47 m_regionWaterHeight = regionWater; 47 m_regionWaterHeight = regionWater;
48 48
49 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Avatar.cs - Loading details from grid (DUMMY)"); 49 OpenSim.Framework.Console.MainConsole.Instance.Verbose("Avatar.cs - Loading details from grid (DUMMY)");
50 ControllingClient = TheClient; 50 ControllingClient = TheClient;
51 localid = 8880000 + (this.m_world._localNumber++); 51 localid = 8880000 + (this.m_world._localNumber++);
52 Pos = ControllingClient.startpos; 52 Pos = ControllingClient.startpos;
@@ -211,7 +211,7 @@ namespace OpenSim.world
211 211
212 public void CompleteMovement() 212 public void CompleteMovement()
213 { 213 {
214 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.VERBOSE,"Avatar.cs:CompleteMovement() - Constructing AgentMovementComplete packet"); 214 OpenSim.Framework.Console.MainConsole.Instance.Verbose("Avatar.cs:CompleteMovement() - Constructing AgentMovementComplete packet");
215 AgentMovementCompletePacket mov = new AgentMovementCompletePacket(); 215 AgentMovementCompletePacket mov = new AgentMovementCompletePacket();
216 mov.AgentData.SessionID = this.ControllingClient.SessionID; 216 mov.AgentData.SessionID = this.ControllingClient.SessionID;
217 mov.AgentData.AgentID = this.ControllingClient.AgentID; 217 mov.AgentData.AgentID = this.ControllingClient.AgentID;
@@ -382,11 +382,11 @@ namespace OpenSim.world
382 //really really should be moved somewhere else (RegionInfo.cs ?) 382 //really really should be moved somewhere else (RegionInfo.cs ?)
383 public void SendRegionHandshake(World regionInfo) 383 public void SendRegionHandshake(World regionInfo)
384 { 384 {
385 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.VERBOSE,"Avatar.cs:SendRegionHandshake() - Creating empty RegionHandshake packet"); 385 OpenSim.Framework.Console.MainConsole.Instance.Verbose("Avatar.cs:SendRegionHandshake() - Creating empty RegionHandshake packet");
386 System.Text.Encoding _enc = System.Text.Encoding.ASCII; 386 System.Text.Encoding _enc = System.Text.Encoding.ASCII;
387 RegionHandshakePacket handshake = new RegionHandshakePacket(); 387 RegionHandshakePacket handshake = new RegionHandshakePacket();
388 388
389 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.VERBOSE,"Avatar.cs:SendRegionhandshake() - Filling in RegionHandshake details"); 389 OpenSim.Framework.Console.MainConsole.Instance.Verbose("Avatar.cs:SendRegionhandshake() - Filling in RegionHandshake details");
390 handshake.RegionInfo.BillableFactor = 0; 390 handshake.RegionInfo.BillableFactor = 0;
391 handshake.RegionInfo.IsEstateManager = false; 391 handshake.RegionInfo.IsEstateManager = false;
392 handshake.RegionInfo.TerrainHeightRange00 = regionInfo.m_regInfo.TerrainHeightRange00; 392 handshake.RegionInfo.TerrainHeightRange00 = regionInfo.m_regInfo.TerrainHeightRange00;
@@ -417,7 +417,7 @@ namespace OpenSim.world
417 handshake.RegionInfo.TerrainDetail3 = regionInfo.m_regInfo.TerrainDetail3; 417 handshake.RegionInfo.TerrainDetail3 = regionInfo.m_regInfo.TerrainDetail3;
418 handshake.RegionInfo.CacheID = new LLUUID("545ec0a5-5751-1026-8a0b-216e38a7ab37"); 418 handshake.RegionInfo.CacheID = new LLUUID("545ec0a5-5751-1026-8a0b-216e38a7ab37");
419 419
420 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.VERBOSE,"Avatar.cs:SendRegionHandshake() - Sending RegionHandshake packet"); 420 OpenSim.Framework.Console.MainConsole.Instance.Verbose("Avatar.cs:SendRegionHandshake() - Sending RegionHandshake packet");
421 this.ControllingClient.OutPacket(handshake); 421 this.ControllingClient.OutPacket(handshake);
422 } 422 }
423 423
diff --git a/OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs b/OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs
index 9e96a4e..2947b96 100644
--- a/OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs
+++ b/OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs
@@ -18,7 +18,7 @@ namespace OpenSim.world
18 18
19 public void LoadAnims() 19 public void LoadAnims()
20 { 20 {
21 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Avatar.cs:LoadAnims() - Loading avatar animations"); 21 OpenSim.Framework.Console.MainConsole.Instance.Verbose("Avatar.cs:LoadAnims() - Loading avatar animations");
22 XmlTextReader reader = new XmlTextReader("data/avataranimations.xml"); 22 XmlTextReader reader = new XmlTextReader("data/avataranimations.xml");
23 23
24 XmlDocument doc = new XmlDocument(); 24 XmlDocument doc = new XmlDocument();
@@ -35,7 +35,7 @@ namespace OpenSim.world
35 35
36 reader.Close(); 36 reader.Close();
37 37
38 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Loaded " + AnimsLLUUID.Count.ToString() + " animation(s)"); 38 OpenSim.Framework.Console.MainConsole.Instance.Verbose("Loaded " + AnimsLLUUID.Count.ToString() + " animation(s)");
39 39
40 foreach (KeyValuePair<string, LLUUID> kp in OpenSim.world.Avatar.Animations.AnimsLLUUID) 40 foreach (KeyValuePair<string, LLUUID> kp in OpenSim.world.Avatar.Animations.AnimsLLUUID)
41 { 41 {
diff --git a/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs b/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs
index 8924773..6bf1598 100644
--- a/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs
+++ b/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs
@@ -113,7 +113,7 @@ namespace OpenSim.world
113 //Uncomment when prim/object UUIDs are random or such 113 //Uncomment when prim/object UUIDs are random or such
114 //2007-03-22 - Randomskk 114 //2007-03-22 - Randomskk
115 //this._primCount--; 115 //this._primCount--;
116 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.VERBOSE, "Deleted UUID " + ent.uuid); 116 OpenSim.Framework.Console.MainConsole.Instance.Verbose("Deleted UUID " + ent.uuid);
117 } 117 }
118 } 118 }
119 } 119 }
diff --git a/OpenSim/OpenSim.RegionServer/world/World.cs b/OpenSim/OpenSim.RegionServer/world/World.cs
index 92de6f0..1f15e9c 100644
--- a/OpenSim/OpenSim.RegionServer/world/World.cs
+++ b/OpenSim/OpenSim.RegionServer/world/World.cs
@@ -15,6 +15,7 @@ using OpenSim.Assets;
15//using OpenSim.world.scripting; 15//using OpenSim.world.scripting;
16using OpenSim.RegionServer.world.scripting; 16using OpenSim.RegionServer.world.scripting;
17using OpenSim.Terrain; 17using OpenSim.Terrain;
18using OpenSim.Framework.Console;
18 19
19namespace OpenSim.world 20namespace OpenSim.world
20{ 21{
@@ -71,12 +72,12 @@ namespace OpenSim.world
71 m_scriptHandlers = new Dictionary<LLUUID, ScriptHandler>(); 72 m_scriptHandlers = new Dictionary<LLUUID, ScriptHandler>();
72 m_scripts = new Dictionary<string, ScriptFactory>(); 73 m_scripts = new Dictionary<string, ScriptFactory>();
73 74
74 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs - creating new entitities instance"); 75 MainConsole.Instance.Notice("World.cs - creating new entitities instance");
75 Entities = new Dictionary<libsecondlife.LLUUID, Entity>(); 76 Entities = new Dictionary<libsecondlife.LLUUID, Entity>();
76 Avatars = new Dictionary<LLUUID, Avatar>(); 77 Avatars = new Dictionary<LLUUID, Avatar>();
77 Prims = new Dictionary<LLUUID, Primitive>(); 78 Prims = new Dictionary<LLUUID, Primitive>();
78 79
79 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs - creating LandMap"); 80 MainConsole.Instance.Notice("World.cs - creating LandMap");
80 TerrainManager = new TerrainManager(new SecondLife()); 81 TerrainManager = new TerrainManager(new SecondLife());
81 Terrain = new TerrainEngine(); 82 Terrain = new TerrainEngine();
82 Avatar.SetupTemplate("avatar-texture.dat"); 83 Avatar.SetupTemplate("avatar-texture.dat");
@@ -90,7 +91,7 @@ namespace OpenSim.world
90 } 91 }
91 catch (Exception e) 92 catch (Exception e)
92 { 93 {
93 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.CRITICAL, "World.cs: Constructor failed with exception " + e.ToString()); 94 OpenSim.Framework.Console.MainConsole.Instance.Error("World.cs: Constructor failed with exception " + e.ToString());
94 } 95 }
95 } 96 }
96 #endregion 97 #endregion
@@ -110,7 +111,7 @@ namespace OpenSim.world
110 } 111 }
111 catch (Exception e) 112 catch (Exception e)
112 { 113 {
113 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: AddScript() - Failed with exception " + e.ToString()); 114 MainConsole.Instance.Warn("World.cs: AddScript() - Failed with exception " + e.ToString());
114 } 115 }
115 } 116 }
116 117
@@ -162,7 +163,7 @@ namespace OpenSim.world
162 } 163 }
163 catch (Exception e) 164 catch (Exception e)
164 { 165 {
165 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: AddScript() - Failed with exception " + e.ToString()); 166 MainConsole.Instance.Warn("World.cs: AddScript() - Failed with exception " + e.ToString());
166 } 167 }
167 } 168 }
168 169
@@ -216,7 +217,7 @@ namespace OpenSim.world
216 } 217 }
217 catch (Exception e) 218 catch (Exception e)
218 { 219 {
219 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: Update() - Failed with exception " + e.ToString()); 220 MainConsole.Instance.Warn("World.cs: Update() - Failed with exception " + e.ToString());
220 } 221 }
221 updateLock.ReleaseMutex(); 222 updateLock.ReleaseMutex();
222 } 223 }
@@ -229,15 +230,15 @@ namespace OpenSim.world
229 if (Terrain.tainted > 0) 230 if (Terrain.tainted > 0)
230 { 231 {
231 Terrain.tainted = 0; 232 Terrain.tainted = 0;
232 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: Backup() - Terrain tainted, saving."); 233 MainConsole.Instance.Notice("World.cs: Backup() - Terrain tainted, saving.");
233 localStorage.SaveMap(Terrain.getHeights1D()); 234 localStorage.SaveMap(Terrain.getHeights1D());
234 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: Backup() - Rebuilding world map image."); 235 MainConsole.Instance.Notice("World.cs: Backup() - Rebuilding world map image.");
235 Terrain.exportImage("map_" + m_regInfo.RegionName.ToLower() + ".png", "defaultstripe.png"); 236 Terrain.exportImage("map_" + m_regInfo.RegionName.ToLower() + ".png", "defaultstripe.png");
236 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: Backup() - Terrain saved, informing Physics."); 237 MainConsole.Instance.Notice("World.cs: Backup() - Terrain saved, informing Physics.");
237 phyScene.SetTerrain(Terrain.getHeights1D()); 238 phyScene.SetTerrain(Terrain.getHeights1D());
238 239
239 // Needs optimising to just send patches which have changed. 240 // Needs optimising to just send patches which have changed.
240 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: Backup() - Terrain changed, informing Clients."); 241 MainConsole.Instance.Notice("World.cs: Backup() - Terrain changed, informing Clients.");
241 foreach (ClientView client in m_clientThreads.Values) 242 foreach (ClientView client in m_clientThreads.Values)
242 { 243 {
243 this.SendLayerData(client); 244 this.SendLayerData(client);
@@ -245,7 +246,7 @@ namespace OpenSim.world
245 } 246 }
246 247
247 // Primitive backup routines -- should only do if there's been a change. 248 // Primitive backup routines -- should only do if there's been a change.
248 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: Backup() - Backing up Primitives"); 249 MainConsole.Instance.Notice("World.cs: Backup() - Backing up Primitives");
249 foreach (libsecondlife.LLUUID UUID in Entities.Keys) 250 foreach (libsecondlife.LLUUID UUID in Entities.Keys)
250 { 251 {
251 Entities[UUID].BackUp(); 252 Entities[UUID].BackUp();
@@ -268,7 +269,7 @@ namespace OpenSim.world
268 catch (Exception e) 269 catch (Exception e)
269 { 270 {
270 // Backup failed 271 // Backup failed
271 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH, "World.cs: Backup() - Backup Failed with exception " + e.ToString()); 272 OpenSim.Framework.Console.MainConsole.Instance.Error("World.cs: Backup() - Backup Failed with exception " + e.ToString());
272 return false; 273 return false;
273 } 274 }
274 } 275 }
@@ -314,7 +315,7 @@ namespace OpenSim.world
314 } 315 }
315 catch (Exception e) 316 catch (Exception e)
316 { 317 {
317 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: LoadStorageDLL() - Failed with exception " + e.ToString()); 318 MainConsole.Instance.Warn("World.cs: LoadStorageDLL() - Failed with exception " + e.ToString());
318 return false; 319 return false;
319 } 320 }
320 } 321 }
@@ -358,7 +359,7 @@ namespace OpenSim.world
358 } 359 }
359 catch (Exception e) 360 catch (Exception e)
360 { 361 {
361 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: RegenerateTerrain() - Failed with exception " + e.ToString()); 362 MainConsole.Instance.Warn("World.cs: RegenerateTerrain() - Failed with exception " + e.ToString());
362 } 363 }
363 } 364 }
364 365
@@ -389,7 +390,7 @@ namespace OpenSim.world
389 } 390 }
390 catch (Exception e) 391 catch (Exception e)
391 { 392 {
392 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: RegenerateTerrain() - Failed with exception " + e.ToString()); 393 MainConsole.Instance.Warn("World.cs: RegenerateTerrain() - Failed with exception " + e.ToString());
393 } 394 }
394 } 395 }
395 396
@@ -415,7 +416,7 @@ namespace OpenSim.world
415 } 416 }
416 catch (Exception e) 417 catch (Exception e)
417 { 418 {
418 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: RegenerateTerrain() - Failed with exception " + e.ToString()); 419 MainConsole.Instance.Warn("World.cs: RegenerateTerrain() - Failed with exception " + e.ToString());
419 } 420 }
420 } 421 }
421 422
@@ -461,7 +462,7 @@ namespace OpenSim.world
461 } 462 }
462 catch (Exception e) 463 catch (Exception e)
463 { 464 {
464 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: LoadWorldMap() - Failed with exception " + e.ToString()); 465 MainConsole.Instance.Warn("World.cs: LoadWorldMap() - Failed with exception " + e.ToString());
465 } 466 }
466 } 467 }
467 #endregion 468 #endregion
@@ -487,7 +488,7 @@ namespace OpenSim.world
487 } 488 }
488 catch (Exception e) 489 catch (Exception e)
489 { 490 {
490 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: GetInitialPrims() - Failed with exception " + e.ToString()); 491 MainConsole.Instance.Warn("World.cs: GetInitialPrims() - Failed with exception " + e.ToString());
491 } 492 }
492 } 493 }
493 494
@@ -498,12 +499,12 @@ namespace OpenSim.world
498 { 499 {
499 try 500 try
500 { 501 {
501 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: LoadPrimsFromStorage() - Loading primitives"); 502 MainConsole.Instance.Notice("World.cs: LoadPrimsFromStorage() - Loading primitives");
502 this.localStorage.LoadPrimitives(this); 503 this.localStorage.LoadPrimitives(this);
503 } 504 }
504 catch (Exception e) 505 catch (Exception e)
505 { 506 {
506 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: LoadPrimsFromStorage() - Failed with exception " + e.ToString()); 507 MainConsole.Instance.Warn("World.cs: LoadPrimsFromStorage() - Failed with exception " + e.ToString());
507 } 508 }
508 } 509 }
509 510
@@ -519,14 +520,14 @@ namespace OpenSim.world
519 { 520 {
520 _primCount = prim.LocalID + 1; 521 _primCount = prim.LocalID + 1;
521 } 522 }
522 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: PrimFromStorage() - Reloading prim (localId " + prim.LocalID + " ) from storage"); 523 MainConsole.Instance.Notice("World.cs: PrimFromStorage() - Reloading prim (localId " + prim.LocalID + " ) from storage");
523 Primitive nPrim = new Primitive(m_clientThreads, m_regionHandle, this); 524 Primitive nPrim = new Primitive(m_clientThreads, m_regionHandle, this);
524 nPrim.CreateFromStorage(prim); 525 nPrim.CreateFromStorage(prim);
525 this.Entities.Add(nPrim.uuid, nPrim); 526 this.Entities.Add(nPrim.uuid, nPrim);
526 } 527 }
527 catch (Exception e) 528 catch (Exception e)
528 { 529 {
529 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: PrimFromStorage() - Failed with exception " + e.ToString()); 530 MainConsole.Instance.Warn("World.cs: PrimFromStorage() - Failed with exception " + e.ToString());
530 } 531 }
531 } 532 }
532 533
@@ -539,7 +540,7 @@ namespace OpenSim.world
539 { 540 {
540 try 541 try
541 { 542 {
542 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: AddNewPrim() - Creating new prim"); 543 MainConsole.Instance.Notice("World.cs: AddNewPrim() - Creating new prim");
543 Primitive prim = new Primitive(m_clientThreads, m_regionHandle, this); 544 Primitive prim = new Primitive(m_clientThreads, m_regionHandle, this);
544 prim.CreateFromPacket(addPacket, ownerID, this._primCount); 545 prim.CreateFromPacket(addPacket, ownerID, this._primCount);
545 PhysicsVector pVec = new PhysicsVector(prim.Pos.X, prim.Pos.Y, prim.Pos.Z); 546 PhysicsVector pVec = new PhysicsVector(prim.Pos.X, prim.Pos.Y, prim.Pos.Z);
@@ -557,7 +558,7 @@ namespace OpenSim.world
557 } 558 }
558 catch (Exception e) 559 catch (Exception e)
559 { 560 {
560 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: AddNewPrim() - Failed with exception " + e.ToString()); 561 MainConsole.Instance.Warn("World.cs: AddNewPrim() - Failed with exception " + e.ToString());
561 } 562 }
562 } 563 }
563 564
@@ -590,10 +591,10 @@ namespace OpenSim.world
590 Avatar newAvatar = null; 591 Avatar newAvatar = null;
591 try 592 try
592 { 593 {
593 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs:AddViewerAgent() - Creating new avatar for remote viewer agent"); 594 MainConsole.Instance.Notice("World.cs:AddViewerAgent() - Creating new avatar for remote viewer agent");
594 newAvatar = new Avatar(agentClient, this, m_regionName, m_clientThreads, m_regionHandle, true, 20); 595 newAvatar = new Avatar(agentClient, this, m_regionName, m_clientThreads, m_regionHandle, true, 20);
595 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs:AddViewerAgent() - Adding new avatar to world"); 596 MainConsole.Instance.Notice("World.cs:AddViewerAgent() - Adding new avatar to world");
596 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs:AddViewerAgent() - Starting RegionHandshake "); 597 MainConsole.Instance.Notice("World.cs:AddViewerAgent() - Starting RegionHandshake ");
597 newAvatar.SendRegionHandshake(this); 598 newAvatar.SendRegionHandshake(this);
598 //if (!agentClient.m_child) 599 //if (!agentClient.m_child)
599 //{ 600 //{
@@ -629,7 +630,7 @@ namespace OpenSim.world
629 } 630 }
630 catch (Exception e) 631 catch (Exception e)
631 { 632 {
632 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: AddViewerAgent() - Failed with exception " + e.ToString()); 633 MainConsole.Instance.Warn("World.cs: AddViewerAgent() - Failed with exception " + e.ToString());
633 } 634 }
634 return newAvatar; 635 return newAvatar;
635 } 636 }
@@ -655,7 +656,7 @@ namespace OpenSim.world
655 } 656 }
656 catch (Exception e) 657 catch (Exception e)
657 { 658 {
658 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: RemoveViewerAgent() - Failed with exception " + e.ToString()); 659 MainConsole.Instance.Warn("World.cs: RemoveViewerAgent() - Failed with exception " + e.ToString());
659 } 660 }
660 } 661 }
661 #endregion 662 #endregion
@@ -689,7 +690,7 @@ namespace OpenSim.world
689 } 690 }
690 catch (Exception e) 691 catch (Exception e)
691 { 692 {
692 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH, "World.cs: Close() - Failed with exception " + e.ToString()); 693 OpenSim.Framework.Console.MainConsole.Instance.Error("World.cs: Close() - Failed with exception " + e.ToString());
693 } 694 }
694 } 695 }
695 #endregion 696 #endregion
diff --git a/OpenSim/OpenSim.RegionServer/world/WorldBase.cs b/OpenSim/OpenSim.RegionServer/world/WorldBase.cs
index f8fb49d..2d4b6bf 100644
--- a/OpenSim/OpenSim.RegionServer/world/WorldBase.cs
+++ b/OpenSim/OpenSim.RegionServer/world/WorldBase.cs
@@ -14,6 +14,7 @@ using OpenSim.Framework.Inventory;
14using OpenSim.Assets; 14using OpenSim.Assets;
15using OpenSim.RegionServer.world.scripting; 15using OpenSim.RegionServer.world.scripting;
16using OpenSim.Terrain; 16using OpenSim.Terrain;
17using OpenSim.Framework.Console;
17 18
18namespace OpenSim.world 19namespace OpenSim.world
19{ 20{
@@ -112,7 +113,7 @@ namespace OpenSim.world
112 } 113 }
113 catch (Exception e) 114 catch (Exception e)
114 { 115 {
115 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: SendLayerData() - Failed with exception " + e.ToString()); 116 MainConsole.Instance.Warn("World.cs: SendLayerData() - Failed with exception " + e.ToString());
116 } 117 }
117 } 118 }
118 119
@@ -138,7 +139,7 @@ namespace OpenSim.world
138 } 139 }
139 catch (Exception e) 140 catch (Exception e)
140 { 141 {
141 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: SendLayerData() - Failed with exception " + e.ToString()); 142 MainConsole.Instance.Warn("World.cs: SendLayerData() - Failed with exception " + e.ToString());
142 } 143 }
143 } 144 }
144 #endregion 145 #endregion