diff options
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/AssetServer.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/AssetServer.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AssetServer.cs b/OpenSim/Framework/Communications/Cache/AssetServer.cs index 575e80a..c1cf100 100644 --- a/OpenSim/Framework/Communications/Cache/AssetServer.cs +++ b/OpenSim/Framework/Communications/Cache/AssetServer.cs | |||
@@ -35,6 +35,8 @@ namespace OpenSim.Framework.Communications.Cache | |||
35 | { | 35 | { |
36 | public class LocalAssetServer : AssetServerBase | 36 | public class LocalAssetServer : AssetServerBase |
37 | { | 37 | { |
38 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
39 | |||
38 | private IObjectContainer db; | 40 | private IObjectContainer db; |
39 | 41 | ||
40 | public LocalAssetServer() | 42 | public LocalAssetServer() |
@@ -43,7 +45,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
43 | yapfile = File.Exists(Path.Combine(Util.dataDir(), "regionassets.yap")); | 45 | yapfile = File.Exists(Path.Combine(Util.dataDir(), "regionassets.yap")); |
44 | 46 | ||
45 | db = Db4oFactory.OpenFile(Path.Combine(Util.dataDir(), "regionassets.yap")); | 47 | db = Db4oFactory.OpenFile(Path.Combine(Util.dataDir(), "regionassets.yap")); |
46 | MainLog.Instance.Verbose("ASSETS", "Db4 Asset database creation"); | 48 | m_log.Info("[ASSETS]: Db4 Asset database creation"); |
47 | 49 | ||
48 | if (!yapfile) | 50 | if (!yapfile) |
49 | { | 51 | { |
@@ -67,7 +69,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
67 | 69 | ||
68 | if (db != null) | 70 | if (db != null) |
69 | { | 71 | { |
70 | MainLog.Instance.Verbose("ASSETSERVER", "Closing local asset server database"); | 72 | m_log.Info("[ASSETSERVER]: Closing local asset server database"); |
71 | db.Close(); | 73 | db.Close(); |
72 | } | 74 | } |
73 | } | 75 | } |
@@ -120,7 +122,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
120 | 122 | ||
121 | protected virtual void SetUpAssetDatabase() | 123 | protected virtual void SetUpAssetDatabase() |
122 | { | 124 | { |
123 | MainLog.Instance.Verbose("LOCAL ASSET SERVER", "Setting up asset database"); | 125 | m_log.Info("[LOCAL ASSET SERVER]: Setting up asset database"); |
124 | 126 | ||
125 | base.LoadDefaultAssets(); | 127 | base.LoadDefaultAssets(); |
126 | } | 128 | } |