audit on crash

This commit is contained in:
Michael 2017-05-18 13:13:13 -04:00
parent e19487b1a1
commit 7bd59c1e8a

View file

@ -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<DeliveryResponse>(result);
}