qol: remove exceptionless
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
using Disco.Data.Repository;
|
||||
using Disco.Services;
|
||||
using Disco.Services.Interop.DiscoServices;
|
||||
using Exceptionless;
|
||||
using Exceptionless.Configuration;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
[assembly: Exceptionless("https://errors.discoict.com.au", "c81e644582374f68aaf1fb546e3db0cd")]
|
||||
|
||||
namespace Disco.Web
|
||||
{
|
||||
public static class AppConfig
|
||||
@@ -31,8 +27,6 @@ namespace Disco.Web
|
||||
|
||||
public static void InitalizeCoreEnvironment(DiscoDataContext Database)
|
||||
{
|
||||
ExceptionlessClient.Current.SendingError += Exceptionless_SendingError;
|
||||
|
||||
// Initialize Logging
|
||||
Disco.Services.Logging.LogContext.Initalize(Database, DiscoApplication.SchedulerFactory);
|
||||
|
||||
@@ -54,14 +48,6 @@ namespace Disco.Web
|
||||
Disco.Services.Users.UserService.Initialize(Database);
|
||||
}
|
||||
|
||||
static void Exceptionless_SendingError(object sender, ErrorModelEventArgs e)
|
||||
{
|
||||
e.Error.UserName = DiscoApplication.DeploymentId;
|
||||
e.Error.UserDescription = DiscoApplication.OrganisationName;
|
||||
|
||||
e.Error.Tags.Add(string.Concat("v", DiscoApplication.Version));
|
||||
}
|
||||
|
||||
public static void InitalizeNormalEnvironment(DiscoDataContext Database)
|
||||
{
|
||||
InitalizeCoreEnvironment(Database);
|
||||
|
||||
@@ -15,7 +15,6 @@ using Disco.Services.Plugins.Features.UIExtension;
|
||||
using Disco.Services.Plugins.Features.WarrantyProvider;
|
||||
using Disco.Services.Users;
|
||||
using Disco.Services.Web;
|
||||
using Exceptionless;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -592,7 +591,6 @@ namespace Disco.Web.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.ToExceptionless().Submit();
|
||||
m.Error = ex;
|
||||
return View(Views.LogWarrantyError, m);
|
||||
throw;
|
||||
@@ -607,7 +605,6 @@ namespace Disco.Web.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.ToExceptionless().Submit();
|
||||
m.Error = ex;
|
||||
return View(Views.LogWarrantyError, m);
|
||||
}
|
||||
@@ -630,7 +627,6 @@ namespace Disco.Web.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.ToExceptionless().Submit();
|
||||
m.Error = ex;
|
||||
return View(Views.LogWarrantyError, m);
|
||||
throw;
|
||||
@@ -675,7 +671,6 @@ namespace Disco.Web.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.ToExceptionless().Submit();
|
||||
model.JobDetailsSupported = false;
|
||||
model.JobDetailsException = ex;
|
||||
return View(model);
|
||||
@@ -778,7 +773,6 @@ namespace Disco.Web.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.ToExceptionless().Submit();
|
||||
m.Error = ex;
|
||||
return View(Views.LogRepairError, m);
|
||||
throw;
|
||||
@@ -793,7 +787,6 @@ namespace Disco.Web.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.ToExceptionless().Submit();
|
||||
m.Error = ex;
|
||||
return View(Views.LogRepairError, m);
|
||||
}
|
||||
@@ -816,7 +809,6 @@ namespace Disco.Web.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.ToExceptionless().Submit();
|
||||
m.Error = ex;
|
||||
return View(Views.LogRepairError, m);
|
||||
throw;
|
||||
@@ -861,7 +853,6 @@ namespace Disco.Web.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.ToExceptionless().Submit();
|
||||
model.JobDetailsSupported = false;
|
||||
model.JobDetailsException = ex;
|
||||
return View(model);
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
<RestorePackages>true</RestorePackages>
|
||||
<UseGlobalApplicationHostFile />
|
||||
<Use64BitIISExpress />
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -45,15 +47,6 @@
|
||||
<UseVSHostingProcess>true</UseVSHostingProcess>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Exceptionless">
|
||||
<HintPath>..\packages\Exceptionless.1.5.2092\lib\net45\Exceptionless.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Exceptionless.Models">
|
||||
<HintPath>..\packages\Exceptionless.1.5.2092\lib\net45\Exceptionless.Models.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Exceptionless.Mvc">
|
||||
<HintPath>..\packages\Exceptionless.Mvc.1.5.2092\lib\net45\Exceptionless.Mvc.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MarkdownSharp">
|
||||
<HintPath>..\packages\MarkdownSharp.1.13.0.0\lib\35\MarkdownSharp.dll</HintPath>
|
||||
</Reference>
|
||||
|
||||
@@ -39,7 +39,6 @@
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<modules runAllManagedModulesForAllRequests="true">
|
||||
<add name="ExceptionlessModule" type="Exceptionless.Mvc.ExceptionlessModule, Exceptionless.Mvc" />
|
||||
</modules>
|
||||
<handlers>
|
||||
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
<package id="DotNet.Highcharts" version="4.0" targetFramework="net45" />
|
||||
<package id="EntityFramework" version="5.0.0" targetFramework="net45" />
|
||||
<package id="EntityFramework.SqlServerCompact" version="4.3.6" targetFramework="net45" />
|
||||
<package id="Exceptionless" version="1.5.2092" targetFramework="net45" />
|
||||
<package id="Exceptionless.Mvc" version="1.5.2092" targetFramework="net45" />
|
||||
<package id="FontAwesome" version="4.1.0" targetFramework="net45" />
|
||||
<package id="jQuery" version="2.1.1" targetFramework="net45" />
|
||||
<package id="jQuery.UI.Combined" version="1.10.4" targetFramework="net45" />
|
||||
|
||||
Reference in New Issue
Block a user