aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.RegionServer/OpenSimMain.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/OpenSimMain.cs')
-rw-r--r--OpenSim/OpenSim.RegionServer/OpenSimMain.cs50
1 files changed, 25 insertions, 25 deletions
diff --git a/OpenSim/OpenSim.RegionServer/OpenSimMain.cs b/OpenSim/OpenSim.RegionServer/OpenSimMain.cs
index 003412d..59d3424 100644
--- a/OpenSim/OpenSim.RegionServer/OpenSimMain.cs
+++ b/OpenSim/OpenSim.RegionServer/OpenSimMain.cs
@@ -89,7 +89,7 @@ namespace OpenSim
89 { 89 {
90 this.SetupFromConfigFile(this.localConfig); 90 this.SetupFromConfigFile(this.localConfig);
91 } 91 }
92 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Main.cs:Startup() - Loading configuration"); 92 m_console.Notice("Main.cs:Startup() - Loading configuration");
93 this.regionData.InitConfig(this.m_sandbox, this.localConfig); 93 this.regionData.InitConfig(this.m_sandbox, this.localConfig);
94 this.localConfig.Close();//for now we can close it as no other classes read from it , but this should change 94 this.localConfig.Close();//for now we can close it as no other classes read from it , but this should change
95 95
@@ -118,7 +118,7 @@ namespace OpenSim
118 } 118 }
119 catch (Exception e) 119 catch (Exception e)
120 { 120 {
121 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH, e.Message + "\nSorry, could not setup local cache"); 121 m_console.Error(e.Message + "\nSorry, could not setup local cache");
122 Environment.Exit(1); 122 Environment.Exit(1);
123 } 123 }
124 124
@@ -141,7 +141,7 @@ namespace OpenSim
141 AssetCache.LoadDefaultTextureSet(); 141 AssetCache.LoadDefaultTextureSet();
142 } 142 }
143 143
144 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Main.cs:Startup() - Initialising HTTP server"); 144 m_console.Notice("Main.cs:Startup() - Initialising HTTP server");
145 145
146 this.SetupHttpListener(); 146 this.SetupHttpListener();
147 147
@@ -173,7 +173,7 @@ namespace OpenSim
173 AdminWebFront adminWebFront = new AdminWebFront("Admin", LocalWorld, InventoryCache, adminLoginServer); 173 AdminWebFront adminWebFront = new AdminWebFront("Admin", LocalWorld, InventoryCache, adminLoginServer);
174 adminWebFront.LoadMethods(httpServer); 174 adminWebFront.LoadMethods(httpServer);
175 175
176 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Main.cs:Startup() - Starting HTTP server"); 176 m_console.Notice("Main.cs:Startup() - Starting HTTP server");
177 httpServer.Start(); 177 httpServer.Start();
178 178
179 //MainServerListener(); 179 //MainServerListener();
@@ -190,7 +190,7 @@ namespace OpenSim
190 GridServers.AssetDll = "OpenSim.GridInterfaces.Local.dll"; 190 GridServers.AssetDll = "OpenSim.GridInterfaces.Local.dll";
191 GridServers.GridDll = "OpenSim.GridInterfaces.Local.dll"; 191 GridServers.GridDll = "OpenSim.GridInterfaces.Local.dll";
192 192
193 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Starting in Sandbox mode"); 193 m_console.Notice("Starting in Sandbox mode");
194 194
195 try 195 try
196 { 196 {
@@ -198,7 +198,7 @@ namespace OpenSim
198 } 198 }
199 catch (Exception e) 199 catch (Exception e)
200 { 200 {
201 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH, e.Message + "\nSorry, could not setup the grid interface"); 201 m_console.Error(e.Message + "\nSorry, could not setup the grid interface");
202 Environment.Exit(1); 202 Environment.Exit(1);
203 } 203 }
204 } 204 }
@@ -215,7 +215,7 @@ namespace OpenSim
215 } 215 }
216 GridServers.GridDll = "OpenSim.GridInterfaces.Remote.dll"; 216 GridServers.GridDll = "OpenSim.GridInterfaces.Remote.dll";
217 217
218 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Starting in Grid mode"); 218 m_console.Notice("Starting in Grid mode");
219 219
220 try 220 try
221 { 221 {
@@ -223,15 +223,15 @@ namespace OpenSim
223 } 223 }
224 catch (Exception e) 224 catch (Exception e)
225 { 225 {
226 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH, e.Message + "\nSorry, could not setup the grid interface"); 226 m_console.Error(e.Message + "\nSorry, could not setup the grid interface");
227 Environment.Exit(1); 227 Environment.Exit(1);
228 } 228 }
229 } 229 }
230 230
231 protected virtual void SetupLocalWorld() 231 protected virtual void SetupLocalWorld()
232 { 232 {
233 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.NORMAL, "Main.cs:Startup() - We are " + regionData.RegionName + " at " + regionData.RegionLocX.ToString() + "," + regionData.RegionLocY.ToString()); 233 m_console.Notice("Main.cs:Startup() - We are " + regionData.RegionName + " at " + regionData.RegionLocX.ToString() + "," + regionData.RegionLocY.ToString());
234 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Initialising world"); 234 m_console.Notice("Initialising world");
235 m_console.componentname = "Region " + regionData.RegionName; 235 m_console.componentname = "Region " + regionData.RegionName;
236 236
237 m_localWorld = new World(this.m_udpServer.PacketServer.ClientThreads, regionData, regionData.RegionHandle, regionData.RegionName); 237 m_localWorld = new World(this.m_udpServer.PacketServer.ClientThreads, regionData, regionData.RegionHandle, regionData.RegionName);
@@ -249,7 +249,7 @@ namespace OpenSim
249 LocalWorld.LoadStorageDLL("OpenSim.Storage.LocalStorageDb4o.dll"); //all these dll names shouldn't be hard coded. 249 LocalWorld.LoadStorageDLL("OpenSim.Storage.LocalStorageDb4o.dll"); //all these dll names shouldn't be hard coded.
250 LocalWorld.LoadWorldMap(); 250 LocalWorld.LoadWorldMap();
251 251
252 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Main.cs:Startup() - Starting up messaging system"); 252 m_console.Notice("Main.cs:Startup() - Starting up messaging system");
253 LocalWorld.PhysScene = this.physManager.GetPhysicsScene(this.m_physicsEngine); 253 LocalWorld.PhysScene = this.physManager.GetPhysicsScene(this.m_physicsEngine);
254 LocalWorld.PhysScene.SetTerrain(LocalWorld.Terrain.getHeights1D()); 254 LocalWorld.PhysScene.SetTerrain(LocalWorld.Terrain.getHeights1D());
255 LocalWorld.LoadPrimsFromStorage(); 255 LocalWorld.LoadPrimsFromStorage();
@@ -297,7 +297,7 @@ namespace OpenSim
297 { 297 {
298 if (GridServers.GridServer.RequestConnection(regionData.SimUUID, regionData.IPListenAddr, (uint)regionData.IPListenPort)) 298 if (GridServers.GridServer.RequestConnection(regionData.SimUUID, regionData.IPListenAddr, (uint)regionData.IPListenPort))
299 { 299 {
300 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Main.cs:Startup() - Success: Got a grid connection OK!"); 300 m_console.Notice("Main.cs:Startup() - Success: Got a grid connection OK!");
301 } 301 }
302 else 302 else
303 { 303 {
@@ -397,7 +397,7 @@ namespace OpenSim
397 switch (attri) 397 switch (attri)
398 { 398 {
399 default: 399 default:
400 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "Main.cs: SetupFromConfig() - Invalid value for PhysicsEngine attribute, terminating"); 400 m_console.Warn("Main.cs: SetupFromConfig() - Invalid value for PhysicsEngine attribute, terminating");
401 Environment.Exit(1); 401 Environment.Exit(1);
402 break; 402 break;
403 403
@@ -440,11 +440,11 @@ namespace OpenSim
440 /// </summary> 440 /// </summary>
441 public virtual void Shutdown() 441 public virtual void Shutdown()
442 { 442 {
443 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Main.cs:Shutdown() - Closing all threads"); 443 m_console.Notice("Main.cs:Shutdown() - Closing all threads");
444 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Main.cs:Shutdown() - Killing listener thread"); 444 m_console.Notice("Main.cs:Shutdown() - Killing listener thread");
445 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Main.cs:Shutdown() - Killing clients"); 445 m_console.Notice("Main.cs:Shutdown() - Killing clients");
446 // IMPLEMENT THIS 446 // IMPLEMENT THIS
447 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Main.cs:Shutdown() - Closing console and terminating"); 447 m_console.Notice("Main.cs:Shutdown() - Closing console and terminating");
448 LocalWorld.Close(); 448 LocalWorld.Close();
449 GridServers.Close(); 449 GridServers.Close();
450 m_console.Close(); 450 m_console.Close();
@@ -472,8 +472,8 @@ namespace OpenSim
472 switch (command) 472 switch (command)
473 { 473 {
474 case "help": 474 case "help":
475 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH, "show users - show info about connected users"); 475 m_console.Error("show users - show info about connected users");
476 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH, "shutdown - disconnect all clients and shutdown"); 476 m_console.Error("shutdown - disconnect all clients and shutdown");
477 break; 477 break;
478 478
479 case "show": 479 case "show":
@@ -484,7 +484,7 @@ namespace OpenSim
484 string result = ""; 484 string result = "";
485 if (!LocalWorld.Terrain.RunTerrainCmd(cmdparams, ref result)) 485 if (!LocalWorld.Terrain.RunTerrainCmd(cmdparams, ref result))
486 { 486 {
487 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH, result); 487 m_console.Error(result);
488 } 488 }
489 break; 489 break;
490 490
@@ -493,7 +493,7 @@ namespace OpenSim
493 break; 493 break;
494 494
495 default: 495 default:
496 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH, "Unknown command"); 496 m_console.Error("Unknown command");
497 break; 497 break;
498 } 498 }
499 } 499 }
@@ -507,18 +507,18 @@ namespace OpenSim
507 switch (ShowWhat) 507 switch (ShowWhat)
508 { 508 {
509 case "uptime": 509 case "uptime":
510 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH, "OpenSim has been running since " + startuptime.ToString()); 510 m_console.Error("OpenSim has been running since " + startuptime.ToString());
511 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH, "That is " + (DateTime.Now - startuptime).ToString()); 511 m_console.Error("That is " + (DateTime.Now - startuptime).ToString());
512 break; 512 break;
513 case "users": 513 case "users":
514 OpenSim.world.Avatar TempAv; 514 OpenSim.world.Avatar TempAv;
515 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH, String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16}{5,-16}", "Firstname", "Lastname", "Agent ID", "Session ID", "Circuit", "IP")); 515 m_console.Error(String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16}{5,-16}", "Firstname", "Lastname", "Agent ID", "Session ID", "Circuit", "IP"));
516 foreach (libsecondlife.LLUUID UUID in LocalWorld.Entities.Keys) 516 foreach (libsecondlife.LLUUID UUID in LocalWorld.Entities.Keys)
517 { 517 {
518 if (LocalWorld.Entities[UUID].ToString() == "OpenSim.world.Avatar") 518 if (LocalWorld.Entities[UUID].ToString() == "OpenSim.world.Avatar")
519 { 519 {
520 TempAv = (OpenSim.world.Avatar)LocalWorld.Entities[UUID]; 520 TempAv = (OpenSim.world.Avatar)LocalWorld.Entities[UUID];
521 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH, String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16},{5,-16}", TempAv.firstname, TempAv.lastname, UUID, TempAv.ControllingClient.SessionID, TempAv.ControllingClient.CircuitCode, TempAv.ControllingClient.userEP.ToString())); 521 m_console.Error(String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16},{5,-16}", TempAv.firstname, TempAv.lastname, UUID, TempAv.ControllingClient.SessionID, TempAv.ControllingClient.CircuitCode, TempAv.ControllingClient.userEP.ToString()));
522 } 522 }
523 } 523 }
524 break; 524 break;