Print full stacktrace from plugin loading failure to help determine what went wrong, rather than a possibly unhelpful simple exception message.

0.7.4-extended
Justin Clark-Casey (justincc) 2013-01-15 01:07:20 +00:00
parent 2f1cc6a06a
commit 5054a07be2
1 changed files with 5 additions and 2 deletions

View File

@ -118,8 +118,11 @@ namespace OpenSim.Server.Base
{ {
if (!(e is System.MissingMethodException)) if (!(e is System.MissingMethodException))
{ {
m_log.ErrorFormat("Error loading plugin {0} from {1}. Exception: {2}", m_log.ErrorFormat("Error loading plugin {0} from {1}. Exception: {2}, {3}",
interfaceName, dllName, e.InnerException == null ? e.Message : e.InnerException.Message); interfaceName,
dllName,
e.InnerException == null ? e.Message : e.InnerException.Message,
e.StackTrace);
} }
return null; return null;
} }