mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
audit on crash
This commit is contained in:
parent
e19487b1a1
commit
7bd59c1e8a
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue