diff options
author | Adam Frisby | 2007-05-12 15:19:03 +0000 |
---|---|---|
committer | Adam Frisby | 2007-05-12 15:19:03 +0000 |
commit | fd84968d05dd6168c07d4712a4e84961d7bae839 (patch) | |
tree | 97aec2c7c45992c47bc19e1a4a996ec10d1093e0 /OpenSim.GridInterfaces/Local/LocalAssetServer.cs | |
parent | You are obsolete. You will be EXTER-MIN-ATE-D. EXTER-MIN-ATE! (diff) | |
download | opensim-SC-fd84968d05dd6168c07d4712a4e84961d7bae839.zip opensim-SC-fd84968d05dd6168c07d4712a4e84961d7bae839.tar.gz opensim-SC-fd84968d05dd6168c07d4712a4e84961d7bae839.tar.bz2 opensim-SC-fd84968d05dd6168c07d4712a4e84961d7bae839.tar.xz |
Only 193 warnings to go!
Diffstat (limited to 'OpenSim.GridInterfaces/Local/LocalAssetServer.cs')
-rw-r--r-- | OpenSim.GridInterfaces/Local/LocalAssetServer.cs | 11 |
1 files changed, 6 insertions, 5 deletions
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; | |||
6 | using OpenSim.Framework.Interfaces; | 6 | using OpenSim.Framework.Interfaces; |
7 | using OpenSim.Framework.Types; | 7 | using OpenSim.Framework.Types; |
8 | using OpenSim.Framework.Utilities; | 8 | using OpenSim.Framework.Utilities; |
9 | using OpenSim.Framework.Console; | ||
9 | using libsecondlife; | 10 | using libsecondlife; |
10 | using Db4objects.Db4o; | 11 | using Db4objects.Db4o; |
11 | using Db4objects.Db4o.Query; | 12 | using Db4objects.Db4o.Query; |
@@ -38,16 +39,16 @@ namespace OpenSim.GridInterfaces.Local | |||
38 | this._assetRequests = new BlockingQueue<ARequest>(); | 39 | this._assetRequests = new BlockingQueue<ARequest>(); |
39 | yapfile = System.IO.File.Exists("assets.yap"); | 40 | yapfile = System.IO.File.Exists("assets.yap"); |
40 | 41 | ||
41 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Local Asset Server class created"); | 42 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE,"Local Asset Server class created"); |
42 | try | 43 | try |
43 | { | 44 | { |
44 | db = Db4oFactory.OpenFile("assets.yap"); | 45 | db = Db4oFactory.OpenFile("assets.yap"); |
45 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Db4 Asset database creation"); | 46 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE,"Db4 Asset database creation"); |
46 | } | 47 | } |
47 | catch (Exception e) | 48 | catch (Exception e) |
48 | { | 49 | { |
49 | db.Close(); | 50 | db.Close(); |
50 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Db4 Asset server :Constructor - Exception occured"); | 51 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.MEDIUM,"Db4 Asset server :Constructor - Exception occured"); |
51 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(e.ToString()); | 52 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(e.ToString()); |
52 | } | 53 | } |
53 | if (!yapfile) | 54 | if (!yapfile) |
@@ -96,7 +97,7 @@ namespace OpenSim.GridInterfaces.Local | |||
96 | { | 97 | { |
97 | if (db != null) | 98 | if (db != null) |
98 | { | 99 | { |
99 | Console.WriteLine("Closing local Asset server database"); | 100 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE, "Closing local asset server database"); |
100 | db.Close(); | 101 | db.Close(); |
101 | } | 102 | } |
102 | } | 103 | } |
@@ -140,7 +141,7 @@ namespace OpenSim.GridInterfaces.Local | |||
140 | try | 141 | try |
141 | { | 142 | { |
142 | 143 | ||
143 | Console.WriteLine("setting up Asset database"); | 144 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE, "Setting up asset database"); |
144 | 145 | ||
145 | AssetBase Image = new AssetBase(); | 146 | AssetBase Image = new AssetBase(); |
146 | Image.FullID = new LLUUID("00000000-0000-0000-9999-000000000001"); | 147 | Image.FullID = new LLUUID("00000000-0000-0000-9999-000000000001"); |