From fd84968d05dd6168c07d4712a4e84961d7bae839 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sat, 12 May 2007 15:19:03 +0000 Subject: Only 193 warnings to go! --- OpenSim.GridInterfaces/Local/LocalAssetServer.cs | 11 ++++++----- OpenSim.GridInterfaces/Local/LocalGridServer.cs | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'OpenSim.GridInterfaces') diff --git a/OpenSim.GridInterfaces/Local/LocalAssetServer.cs b/OpenSim.GridInterfaces/Local/LocalAssetServer.cs index 9162bd3..962cd40 100644 --- a/OpenSim.GridInterfaces/Local/LocalAssetServer.cs +++ b/OpenSim.GridInterfaces/Local/LocalAssetServer.cs @@ -6,6 +6,7 @@ using System.IO; using OpenSim.Framework.Interfaces; using OpenSim.Framework.Types; using OpenSim.Framework.Utilities; +using OpenSim.Framework.Console; using libsecondlife; using Db4objects.Db4o; using Db4objects.Db4o.Query; @@ -38,16 +39,16 @@ namespace OpenSim.GridInterfaces.Local this._assetRequests = new BlockingQueue(); yapfile = System.IO.File.Exists("assets.yap"); - OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Local Asset Server class created"); + OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE,"Local Asset Server class created"); try { db = Db4oFactory.OpenFile("assets.yap"); - OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Db4 Asset database creation"); + OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE,"Db4 Asset database creation"); } catch (Exception e) { db.Close(); - OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Db4 Asset server :Constructor - Exception occured"); + OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.MEDIUM,"Db4 Asset server :Constructor - Exception occured"); OpenSim.Framework.Console.MainConsole.Instance.WriteLine(e.ToString()); } if (!yapfile) @@ -96,7 +97,7 @@ namespace OpenSim.GridInterfaces.Local { if (db != null) { - Console.WriteLine("Closing local Asset server database"); + OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE, "Closing local asset server database"); db.Close(); } } @@ -140,7 +141,7 @@ namespace OpenSim.GridInterfaces.Local try { - Console.WriteLine("setting up Asset database"); + OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE, "Setting up asset database"); AssetBase Image = new AssetBase(); Image.FullID = new LLUUID("00000000-0000-0000-9999-000000000001"); diff --git a/OpenSim.GridInterfaces/Local/LocalGridServer.cs b/OpenSim.GridInterfaces/Local/LocalGridServer.cs index e08d635..622eb53 100644 --- a/OpenSim.GridInterfaces/Local/LocalGridServer.cs +++ b/OpenSim.GridInterfaces/Local/LocalGridServer.cs @@ -30,6 +30,7 @@ using System.Threading; using System.IO; using OpenSim.Framework.Interfaces; using OpenSim.Framework.Types; +using OpenSim.Framework.Console; using libsecondlife; using Db4objects.Db4o; using Db4objects.Db4o.Query; @@ -60,7 +61,7 @@ namespace OpenSim.GridInterfaces.Local public LocalGridServer() { Sessions = new List(); - OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Local Grid Server class created"); + OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE,"Local Grid Server class created"); } public override bool RequestConnection(LLUUID SimUUID, string sim_ip, uint sim_port) -- cgit v1.1