diff options
author | Adam Frisby | 2007-06-05 12:55:12 +0000 |
---|---|---|
committer | Adam Frisby | 2007-06-05 12:55:12 +0000 |
commit | 1e716260c8166005d3bd33f4cda68502a09994bb (patch) | |
tree | 457d68f241ca0d8b28e03fdcd1a93f6aaf75ec44 /OpenSim/OpenSim.RegionServer/ClientView.cs | |
parent | * Removing dead comments (diff) | |
download | opensim-SC_OLD-1e716260c8166005d3bd33f4cda68502a09994bb.zip opensim-SC_OLD-1e716260c8166005d3bd33f4cda68502a09994bb.tar.gz opensim-SC_OLD-1e716260c8166005d3bd33f4cda68502a09994bb.tar.bz2 opensim-SC_OLD-1e716260c8166005d3bd33f4cda68502a09994bb.tar.xz |
* Removed MainConsole.Instance.WriteLine completely
* Now exists MainConsole.Instance.Error/Warn/Notice/Verbose -- use those instead
* Removed some instances of System.Console use - aiming to depreciate this in favour of MainConsole completely.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/OpenSim.RegionServer/ClientView.cs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.cs b/OpenSim/OpenSim.RegionServer/ClientView.cs index 8f7cf58..bf6b72e 100644 --- a/OpenSim/OpenSim.RegionServer/ClientView.cs +++ b/OpenSim/OpenSim.RegionServer/ClientView.cs | |||
@@ -41,6 +41,7 @@ using OpenSim.Framework.Inventory; | |||
41 | using OpenSim.Framework.Utilities; | 41 | using OpenSim.Framework.Utilities; |
42 | using OpenSim.world; | 42 | using OpenSim.world; |
43 | using OpenSim.Assets; | 43 | using OpenSim.Assets; |
44 | using OpenSim.Framework.Console; | ||
44 | 45 | ||
45 | namespace OpenSim | 46 | namespace OpenSim |
46 | { | 47 | { |
@@ -110,7 +111,7 @@ namespace OpenSim | |||
110 | m_child = child; | 111 | m_child = child; |
111 | m_regionData = regionDat; | 112 | m_regionData = regionDat; |
112 | m_authenticateSessionsHandler = authenSessions; | 113 | m_authenticateSessionsHandler = authenSessions; |
113 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "OpenSimClient.cs - Started up new client thread to handle incoming request"); | 114 | MainConsole.Instance.Notice("OpenSimClient.cs - Started up new client thread to handle incoming request"); |
114 | cirpack = initialcirpack; | 115 | cirpack = initialcirpack; |
115 | userEP = remoteEP; | 116 | userEP = remoteEP; |
116 | 117 | ||
@@ -150,7 +151,7 @@ namespace OpenSim | |||
150 | # region Client Methods | 151 | # region Client Methods |
151 | public void UpgradeClient() | 152 | public void UpgradeClient() |
152 | { | 153 | { |
153 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "SimClient.cs:UpgradeClient() - upgrading child to full agent"); | 154 | MainConsole.Instance.Notice("SimClient.cs:UpgradeClient() - upgrading child to full agent"); |
154 | this.m_child = false; | 155 | this.m_child = false; |
155 | //this.m_world.RemoveViewerAgent(this); | 156 | //this.m_world.RemoveViewerAgent(this); |
156 | if (!this.m_sandboxMode) | 157 | if (!this.m_sandboxMode) |
@@ -164,7 +165,7 @@ namespace OpenSim | |||
164 | 165 | ||
165 | public void DowngradeClient() | 166 | public void DowngradeClient() |
166 | { | 167 | { |
167 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "SimClient.cs:UpgradeClient() - changing full agent to child"); | 168 | MainConsole.Instance.Notice("SimClient.cs:UpgradeClient() - changing full agent to child"); |
168 | this.m_child = true; | 169 | this.m_child = true; |
169 | OnChildAgentStatus(this.m_child); | 170 | OnChildAgentStatus(this.m_child); |
170 | //this.m_world.RemoveViewerAgent(this); | 171 | //this.m_world.RemoveViewerAgent(this); |
@@ -254,7 +255,7 @@ namespace OpenSim | |||
254 | 255 | ||
255 | protected virtual void ClientLoop() | 256 | protected virtual void ClientLoop() |
256 | { | 257 | { |
257 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "OpenSimClient.cs:ClientLoop() - Entered loop"); | 258 | MainConsole.Instance.Notice("OpenSimClient.cs:ClientLoop() - Entered loop"); |
258 | while (true) | 259 | while (true) |
259 | { | 260 | { |
260 | QueItem nextPacket = PacketQueue.Dequeue(); | 261 | QueItem nextPacket = PacketQueue.Dequeue(); |
@@ -276,7 +277,7 @@ namespace OpenSim | |||
276 | 277 | ||
277 | protected virtual void InitNewClient() | 278 | protected virtual void InitNewClient() |
278 | { | 279 | { |
279 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "OpenSimClient.cs:InitNewClient() - Adding viewer agent to world"); | 280 | MainConsole.Instance.Notice("OpenSimClient.cs:InitNewClient() - Adding viewer agent to world"); |
280 | this.ClientAvatar = m_world.AddViewerAgent(this); | 281 | this.ClientAvatar = m_world.AddViewerAgent(this); |
281 | } | 282 | } |
282 | 283 | ||
@@ -287,12 +288,12 @@ namespace OpenSim | |||
287 | if (!sessionInfo.Authorised) | 288 | if (!sessionInfo.Authorised) |
288 | { | 289 | { |
289 | //session/circuit not authorised | 290 | //session/circuit not authorised |
290 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.NORMAL, "OpenSimClient.cs:AuthUser() - New user request denied to " + userEP.ToString()); | 291 | OpenSim.Framework.Console.MainConsole.Instance.Notice("OpenSimClient.cs:AuthUser() - New user request denied to " + userEP.ToString()); |
291 | ClientThread.Abort(); | 292 | ClientThread.Abort(); |
292 | } | 293 | } |
293 | else | 294 | else |
294 | { | 295 | { |
295 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.NORMAL, "OpenSimClient.cs:AuthUser() - Got authenticated connection from " + userEP.ToString()); | 296 | OpenSim.Framework.Console.MainConsole.Instance.Notice("OpenSimClient.cs:AuthUser() - Got authenticated connection from " + userEP.ToString()); |
296 | //session is authorised | 297 | //session is authorised |
297 | this.AgentID = cirpack.CircuitCode.ID; | 298 | this.AgentID = cirpack.CircuitCode.ID; |
298 | this.SessionID = cirpack.CircuitCode.SessionID; | 299 | this.SessionID = cirpack.CircuitCode.SessionID; |
@@ -396,7 +397,7 @@ namespace OpenSim | |||
396 | if (this.m_userServer != null) | 397 | if (this.m_userServer != null) |
397 | { | 398 | { |
398 | // a user server is set so request the inventory from it | 399 | // a user server is set so request the inventory from it |
399 | Console.WriteLine("getting inventory from user server"); | 400 | MainConsole.Instance.Verbose("getting inventory from user server"); |
400 | inventory = m_inventoryCache.FetchAgentsInventory(this.AgentID, m_userServer); | 401 | inventory = m_inventoryCache.FetchAgentsInventory(this.AgentID, m_userServer); |
401 | } | 402 | } |
402 | else | 403 | else |
@@ -414,7 +415,7 @@ namespace OpenSim | |||
414 | { | 415 | { |
415 | if (!(packet.InventoryBlock.Type == 3 || packet.InventoryBlock.Type == 7)) | 416 | if (!(packet.InventoryBlock.Type == 3 || packet.InventoryBlock.Type == 7)) |
416 | { | 417 | { |
417 | System.Console.WriteLine("Attempted to create " + Util.FieldToString(packet.InventoryBlock.Name) + " in inventory. Unsupported type"); | 418 | MainConsole.Instance.Warn("Attempted to create " + Util.FieldToString(packet.InventoryBlock.Name) + " in inventory. Unsupported type"); |
418 | return; | 419 | return; |
419 | } | 420 | } |
420 | 421 | ||