1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00

Add sentry logging support. (#240)

This commit is contained in:
David Roth
2018-03-23 18:33:31 +01:00
committed by Kyle Spearrin
parent bf3c01ac46
commit 702d833cea
15 changed files with 44 additions and 7 deletions

View File

@ -142,7 +142,7 @@ namespace Bit.Api
IApplicationLifetime appLifetime,
GlobalSettings globalSettings)
{
loggerFactory.AddSerilog(env, appLifetime, globalSettings, (e) =>
loggerFactory.AddSerilog(app, env, appLifetime, globalSettings, (e) =>
{
var context = e.Properties["SourceContext"].ToString();
if(e.Exception != null && (e.Exception.GetType() == typeof(SecurityTokenValidationException) ||