From 7bd59c1e8a0c55a8969b444d5fcebd9eaae16c49 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 18 May 2017 13:13:13 -0400 Subject: [PATCH] audit on crash --- Project-Unite/App_Start/IdentityConfig.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Project-Unite/App_Start/IdentityConfig.cs b/Project-Unite/App_Start/IdentityConfig.cs index 8788e97..0adcd80 100644 --- a/Project-Unite/App_Start/IdentityConfig.cs +++ b/Project-Unite/App_Start/IdentityConfig.cs @@ -57,7 +57,8 @@ public Task SendAsync(IdentityMessage msg) } sb.AppendLine("FUCKING CONTACT MICHAEL. NOW."); string exc = sb.ToString(); - throw new Exception(exc); + var db = new ApplicationDbContext(); + db.AuditLogs.Add(new AuditLog("system", AuditLogLevel.Admin, exc)); } return Task.FromResult(result); }