From ad7214620f43666aba7a48c4777ee24dbd664b86 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 18 May 2009 17:46:14 +0000 Subject: * 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 --- OpenSim/Server/Base/ServerUtils.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim/Server') 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; using System.Xml; using System.Xml.Serialization; using System.Text; +using log4net; namespace OpenSim.Server.Base { public static class ServerUtils { + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); + public static string SLAssetTypeToContentType(int assetType) { switch (assetType) @@ -114,6 +117,9 @@ namespace OpenSim.Server.Base try { + //m_log.DebugFormat("[PLUGINS]: Loading plugins from {0}", System.IO.Directory.GetCurrentDirectory()); + //m_log.DebugFormat("[PLUGINS]: Trying to load {0}", dllName); + Assembly pluginAssembly = Assembly.LoadFrom(dllName); foreach (Type pluginType in pluginAssembly.GetTypes()) @@ -141,6 +147,7 @@ namespace OpenSim.Server.Base } catch (Exception e) { + m_log.ErrorFormat("Error loading plugin from {0}, exception {1}", dllName, e); return null; } } -- cgit v1.1