diff options
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/SQLAssetServer.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/SQLAssetServer.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs b/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs index 0a141c3..d3a283a 100644 --- a/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs +++ b/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs | |||
@@ -33,6 +33,8 @@ namespace OpenSim.Framework.Communications.Cache | |||
33 | { | 33 | { |
34 | public class SQLAssetServer : AssetServerBase | 34 | public class SQLAssetServer : AssetServerBase |
35 | { | 35 | { |
36 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
37 | |||
36 | public SQLAssetServer(string pluginName) | 38 | public SQLAssetServer(string pluginName) |
37 | { | 39 | { |
38 | AddPlugin(pluginName); | 40 | AddPlugin(pluginName); |
@@ -45,7 +47,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
45 | 47 | ||
46 | public void AddPlugin(string FileName) | 48 | public void AddPlugin(string FileName) |
47 | { | 49 | { |
48 | MainLog.Instance.Verbose("SQLAssetServer", "AssetStorage: Attempting to load " + FileName); | 50 | m_log.Info("[SQLAssetServer]: AssetStorage: Attempting to load " + FileName); |
49 | Assembly pluginAssembly = Assembly.LoadFrom(FileName); | 51 | Assembly pluginAssembly = Assembly.LoadFrom(FileName); |
50 | 52 | ||
51 | foreach (Type pluginType in pluginAssembly.GetTypes()) | 53 | foreach (Type pluginType in pluginAssembly.GetTypes()) |
@@ -61,15 +63,14 @@ namespace OpenSim.Framework.Communications.Cache | |||
61 | m_assetProvider = plug; | 63 | m_assetProvider = plug; |
62 | m_assetProvider.Initialise(); | 64 | m_assetProvider.Initialise(); |
63 | 65 | ||
64 | MainLog.Instance.Verbose("AssetStorage", | 66 | m_log.Info("[AssetStorage]: " + |
65 | "Added " + m_assetProvider.Name + " " + | 67 | "Added " + m_assetProvider.Name + " " + |
66 | m_assetProvider.Version); | 68 | m_assetProvider.Version); |
67 | } | 69 | } |
68 | } | 70 | } |
69 | } | 71 | } |
70 | } | 72 | } |
71 | 73 | ||
72 | |||
73 | public override void Close() | 74 | public override void Close() |
74 | { | 75 | { |
75 | base.Close(); | 76 | base.Close(); |
@@ -98,4 +99,4 @@ namespace OpenSim.Framework.Communications.Cache | |||
98 | m_assetProvider.CommitAssets(); | 99 | m_assetProvider.CommitAssets(); |
99 | } | 100 | } |
100 | } | 101 | } |
101 | } \ No newline at end of file | 102 | } |