aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.GridInterfaces
diff options
context:
space:
mode:
authorAdam Frisby2007-06-05 12:55:12 +0000
committerAdam Frisby2007-06-05 12:55:12 +0000
commit1e716260c8166005d3bd33f4cda68502a09994bb (patch)
tree457d68f241ca0d8b28e03fdcd1a93f6aaf75ec44 /OpenSim/OpenSim.GridInterfaces
parent* Removing dead comments (diff)
downloadopensim-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 'OpenSim/OpenSim.GridInterfaces')
-rw-r--r--OpenSim/OpenSim.GridInterfaces/Local/LocalAssetServer.cs12
-rw-r--r--OpenSim/OpenSim.GridInterfaces/Local/LocalGridServer.cs2
-rw-r--r--OpenSim/OpenSim.GridInterfaces/Remote/RemoteAssetServer.cs4
-rw-r--r--OpenSim/OpenSim.GridInterfaces/Remote/RemoteGridServer.cs7
4 files changed, 13 insertions, 12 deletions
diff --git a/OpenSim/OpenSim.GridInterfaces/Local/LocalAssetServer.cs b/OpenSim/OpenSim.GridInterfaces/Local/LocalAssetServer.cs
index 5f75821..a5fb636 100644
--- a/OpenSim/OpenSim.GridInterfaces/Local/LocalAssetServer.cs
+++ b/OpenSim/OpenSim.GridInterfaces/Local/LocalAssetServer.cs
@@ -39,17 +39,17 @@ namespace OpenSim.GridInterfaces.Local
39 this._assetRequests = new BlockingQueue<ARequest>(); 39 this._assetRequests = new BlockingQueue<ARequest>();
40 yapfile = System.IO.File.Exists("assets.yap"); 40 yapfile = System.IO.File.Exists("assets.yap");
41 41
42 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE,"Local Asset Server class created"); 42 MainConsole.Instance.Verbose("Local Asset Server class created");
43 try 43 try
44 { 44 {
45 db = Db4oFactory.OpenFile("assets.yap"); 45 db = Db4oFactory.OpenFile("assets.yap");
46 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE,"Db4 Asset database creation"); 46 MainConsole.Instance.Verbose("Db4 Asset database creation");
47 } 47 }
48 catch (Exception e) 48 catch (Exception e)
49 { 49 {
50 db.Close(); 50 db.Close();
51 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.MEDIUM,"Db4 Asset server :Constructor - Exception occured"); 51 MainConsole.Instance.Warn("Db4 Asset server :Constructor - Exception occured");
52 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, e.ToString()); 52 MainConsole.Instance.Warn(e.ToString());
53 } 53 }
54 if (!yapfile) 54 if (!yapfile)
55 { 55 {
@@ -97,7 +97,7 @@ namespace OpenSim.GridInterfaces.Local
97 { 97 {
98 if (db != null) 98 if (db != null)
99 { 99 {
100 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE, "Closing local asset server database"); 100 MainConsole.Instance.Verbose( "Closing local asset server database");
101 db.Close(); 101 db.Close();
102 } 102 }
103 } 103 }
@@ -141,7 +141,7 @@ namespace OpenSim.GridInterfaces.Local
141 try 141 try
142 { 142 {
143 143
144 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE, "Setting up asset database"); 144 MainConsole.Instance.Verbose( "Setting up asset database");
145 145
146 AssetBase Image = new AssetBase(); 146 AssetBase Image = new AssetBase();
147 Image.FullID = new LLUUID("00000000-0000-0000-9999-000000000001"); 147 Image.FullID = new LLUUID("00000000-0000-0000-9999-000000000001");
diff --git a/OpenSim/OpenSim.GridInterfaces/Local/LocalGridServer.cs b/OpenSim/OpenSim.GridInterfaces/Local/LocalGridServer.cs
index fdd6ba4..36b7cbc 100644
--- a/OpenSim/OpenSim.GridInterfaces/Local/LocalGridServer.cs
+++ b/OpenSim/OpenSim.GridInterfaces/Local/LocalGridServer.cs
@@ -62,7 +62,7 @@ namespace OpenSim.GridInterfaces.Local
62 public LocalGridServer() 62 public LocalGridServer()
63 { 63 {
64 Sessions = new List<Login>(); 64 Sessions = new List<Login>();
65 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE,"Local Grid Server class created"); 65 MainConsole.Instance.Verbose("Local Grid Server class created");
66 } 66 }
67 67
68 public override bool RequestConnection(LLUUID SimUUID, string sim_ip, uint sim_port) 68 public override bool RequestConnection(LLUUID SimUUID, string sim_ip, uint sim_port)
diff --git a/OpenSim/OpenSim.GridInterfaces/Remote/RemoteAssetServer.cs b/OpenSim/OpenSim.GridInterfaces/Remote/RemoteAssetServer.cs
index 7432dee..aef848d 100644
--- a/OpenSim/OpenSim.GridInterfaces/Remote/RemoteAssetServer.cs
+++ b/OpenSim/OpenSim.GridInterfaces/Remote/RemoteAssetServer.cs
@@ -26,7 +26,7 @@ namespace OpenSim.GridInterfaces.Remote
26 this._remoteAssetServerThread = new Thread(new ThreadStart(RunRequests)); 26 this._remoteAssetServerThread = new Thread(new ThreadStart(RunRequests));
27 this._remoteAssetServerThread.IsBackground = true; 27 this._remoteAssetServerThread.IsBackground = true;
28 this._remoteAssetServerThread.Start(); 28 this._remoteAssetServerThread.Start();
29 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Remote Asset Server class created"); 29 OpenSim.Framework.Console.MainConsole.Instance.Verbose("Remote Asset Server class created");
30 } 30 }
31 31
32 public void SetReceiver(IAssetReceiver receiver) 32 public void SetReceiver(IAssetReceiver receiver)
@@ -71,7 +71,7 @@ namespace OpenSim.GridInterfaces.Remote
71 // 404... THE MAGIC FILE NOT FOUND ERROR, very useful for telling you things such as a file (or asset ;) ) not being found!!!!!!!!!!! it's 2:22AM 71 // 404... THE MAGIC FILE NOT FOUND ERROR, very useful for telling you things such as a file (or asset ;) ) not being found!!!!!!!!!!! it's 2:22AM
72 ARequest req = this._assetRequests.Dequeue(); 72 ARequest req = this._assetRequests.Dequeue();
73 LLUUID assetID = req.AssetID; 73 LLUUID assetID = req.AssetID;
74 // OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW," RemoteAssetServer- Got a AssetServer request, processing it - " + this.AssetServerUrl + "assets/" + assetID); 74 // OpenSim.Framework.Console.MainConsole.Instance.Verbose(" RemoteAssetServer- Got a AssetServer request, processing it - " + this.AssetServerUrl + "assets/" + assetID);
75 WebRequest AssetLoad = WebRequest.Create(this.AssetServerUrl + "assets/" + assetID); 75 WebRequest AssetLoad = WebRequest.Create(this.AssetServerUrl + "assets/" + assetID);
76 WebResponse AssetResponse = AssetLoad.GetResponse(); 76 WebResponse AssetResponse = AssetLoad.GetResponse();
77 byte[] idata = new byte[(int)AssetResponse.ContentLength]; 77 byte[] idata = new byte[(int)AssetResponse.ContentLength];
diff --git a/OpenSim/OpenSim.GridInterfaces/Remote/RemoteGridServer.cs b/OpenSim/OpenSim.GridInterfaces/Remote/RemoteGridServer.cs
index 7f911d8..1995b21 100644
--- a/OpenSim/OpenSim.GridInterfaces/Remote/RemoteGridServer.cs
+++ b/OpenSim/OpenSim.GridInterfaces/Remote/RemoteGridServer.cs
@@ -35,6 +35,7 @@ using libsecondlife;
35using Nwc.XmlRpc; 35using Nwc.XmlRpc;
36using OpenSim.Framework.Interfaces; 36using OpenSim.Framework.Interfaces;
37using OpenSim.Framework.Types; 37using OpenSim.Framework.Types;
38using OpenSim.Framework.Console;
38 39
39namespace OpenSim.GridInterfaces.Remote 40namespace OpenSim.GridInterfaces.Remote
40{ 41{
@@ -68,7 +69,7 @@ namespace OpenSim.GridInterfaces.Remote
68 69
69 public RemoteGridServer() 70 public RemoteGridServer()
70 { 71 {
71 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Remote Grid Server class created"); 72 MainConsole.Instance.Notice("Remote Grid Server class created");
72 } 73 }
73 74
74 public override bool RequestConnection(LLUUID SimUUID, string sim_ip, uint sim_port) 75 public override bool RequestConnection(LLUUID SimUUID, string sim_ip, uint sim_port)
@@ -89,8 +90,8 @@ namespace OpenSim.GridInterfaces.Remote
89 if (GridRespData.ContainsKey("error")) 90 if (GridRespData.ContainsKey("error"))
90 { 91 {
91 string errorstring = (string)GridRespData["error"]; 92 string errorstring = (string)GridRespData["error"];
92 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "Error connecting to grid:"); 93 MainConsole.Instance.Warn("Error connecting to grid:");
93 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, errorstring); 94 MainConsole.Instance.Warn(errorstring);
94 return false; 95 return false;
95 } 96 }
96 this.neighbours = (ArrayList)GridRespData["neighbours"]; 97 this.neighbours = (ArrayList)GridRespData["neighbours"];