Feature #40: Exceptionless error reporting
This commit is contained in:
@@ -5,6 +5,7 @@ using System.Text;
|
||||
using Disco.Services.Logging;
|
||||
using Disco.Services.Logging.Models;
|
||||
using System.Reflection;
|
||||
using Exceptionless;
|
||||
|
||||
namespace Disco.Services.Plugins
|
||||
{
|
||||
@@ -123,6 +124,8 @@ namespace Disco.Services.Plugins
|
||||
|
||||
public static void LogInitializeException(string PluginFilename, Exception ex)
|
||||
{
|
||||
ex.ToExceptionless().AddObject(PluginFilename, "PluginFilename").Submit();
|
||||
|
||||
if (ex.InnerException != null)
|
||||
{
|
||||
Log(EventTypeIds.InitializeExceptionWithInner, PluginFilename, ex.GetType().Name, ex.Message, ex.StackTrace, ex.InnerException.GetType().Name, ex.InnerException.Message, ex.InnerException.StackTrace);
|
||||
@@ -135,6 +138,8 @@ namespace Disco.Services.Plugins
|
||||
|
||||
public static void LogPluginException(string Component, Exception ex)
|
||||
{
|
||||
ex.ToExceptionless().AddObject(Component, "Component").Submit();
|
||||
|
||||
if (ex.InnerException != null)
|
||||
{
|
||||
Log(EventTypeIds.PluginExceptionWithInner, Component, ex.GetType().Name, ex.Message, ex.StackTrace, ex.InnerException.GetType().Name, ex.InnerException.Message, ex.InnerException.StackTrace);
|
||||
|
||||
Reference in New Issue
Block a user