summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-18 13:13:13 -0400
committerMichael <[email protected]>2017-05-18 13:13:13 -0400
commit7bd59c1e8a0c55a8969b444d5fcebd9eaae16c49 (patch)
treee27350db34580b0a2422c822672bbfafe1cd3755
parente19487b1a1c381166b5defb8224fa05a6d93d986 (diff)
downloadproject-unite-7bd59c1e8a0c55a8969b444d5fcebd9eaae16c49.tar.gz
project-unite-7bd59c1e8a0c55a8969b444d5fcebd9eaae16c49.tar.bz2
project-unite-7bd59c1e8a0c55a8969b444d5fcebd9eaae16c49.zip
audit on crash
-rw-r--r--Project-Unite/App_Start/IdentityConfig.cs3
1 files changed, 2 insertions, 1 deletions
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 @@ namespace Project_Unite
}
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<DeliveryResponse>(result);
}