diff options
author | Justin Clarke Casey | 2009-05-18 17:46:14 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-05-18 17:46:14 +0000 |
commit | ad7214620f43666aba7a48c4777ee24dbd664b86 (patch) | |
tree | 7c33b604c660a1f8e25800e1d4c2b83903db8c90 /OpenSim/Server | |
parent | From: Chris Yeoh <yeohc@au1.ibm.com> (diff) | |
download | opensim-SC_OLD-ad7214620f43666aba7a48c4777ee24dbd664b86.zip opensim-SC_OLD-ad7214620f43666aba7a48c4777ee24dbd664b86.tar.gz opensim-SC_OLD-ad7214620f43666aba7a48c4777ee24dbd664b86.tar.bz2 opensim-SC_OLD-ad7214620f43666aba7a48c4777ee24dbd664b86.tar.xz |
* Re-enable save oar test by loading asset data plugins from test mock class
* Actually spit out the exception caught by the plugin loader - not much point having plugins throw exceptions if we are just going to ignore them
Diffstat (limited to 'OpenSim/Server')
-rw-r--r-- | OpenSim/Server/Base/ServerUtils.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Server/Base/ServerUtils.cs b/OpenSim/Server/Base/ServerUtils.cs index ae0c3d4..d827b86 100644 --- a/OpenSim/Server/Base/ServerUtils.cs +++ b/OpenSim/Server/Base/ServerUtils.cs | |||
@@ -31,11 +31,14 @@ using System.Reflection; | |||
31 | using System.Xml; | 31 | using System.Xml; |
32 | using System.Xml.Serialization; | 32 | using System.Xml.Serialization; |
33 | using System.Text; | 33 | using System.Text; |
34 | using log4net; | ||
34 | 35 | ||
35 | namespace OpenSim.Server.Base | 36 | namespace OpenSim.Server.Base |
36 | { | 37 | { |
37 | public static class ServerUtils | 38 | public static class ServerUtils |
38 | { | 39 | { |
40 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
41 | |||
39 | public static string SLAssetTypeToContentType(int assetType) | 42 | public static string SLAssetTypeToContentType(int assetType) |
40 | { | 43 | { |
41 | switch (assetType) | 44 | switch (assetType) |
@@ -114,6 +117,9 @@ namespace OpenSim.Server.Base | |||
114 | 117 | ||
115 | try | 118 | try |
116 | { | 119 | { |
120 | //m_log.DebugFormat("[PLUGINS]: Loading plugins from {0}", System.IO.Directory.GetCurrentDirectory()); | ||
121 | //m_log.DebugFormat("[PLUGINS]: Trying to load {0}", dllName); | ||
122 | |||
117 | Assembly pluginAssembly = Assembly.LoadFrom(dllName); | 123 | Assembly pluginAssembly = Assembly.LoadFrom(dllName); |
118 | 124 | ||
119 | foreach (Type pluginType in pluginAssembly.GetTypes()) | 125 | foreach (Type pluginType in pluginAssembly.GetTypes()) |
@@ -141,6 +147,7 @@ namespace OpenSim.Server.Base | |||
141 | } | 147 | } |
142 | catch (Exception e) | 148 | catch (Exception e) |
143 | { | 149 | { |
150 | m_log.ErrorFormat("Error loading plugin from {0}, exception {1}", dllName, e); | ||
144 | return null; | 151 | return null; |
145 | } | 152 | } |
146 | } | 153 | } |