1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-22 21:51:22 +01:00

log startup

This commit is contained in:
Kyle Spearrin 2019-11-27 14:42:24 -05:00
parent a5b809f477
commit 9e470c1f7a
2 changed files with 11 additions and 2 deletions

View File

@ -140,7 +140,8 @@ namespace Bit.Api
IApplicationBuilder app,
IHostingEnvironment env,
IApplicationLifetime appLifetime,
GlobalSettings globalSettings)
GlobalSettings globalSettings,
ILogger<Startup> logger)
{
IdentityModelEventSource.ShowPII = true;
app.UseSerilog(env, appLifetime, globalSettings);
@ -194,6 +195,9 @@ namespace Bit.Api
config.OAuthClientSecret("secretKey");
});
}
// Log startup
logger.LogInformation(Constants.BypassFiltersEventId, globalSettings.ProjectName + " started.");
}
}
}

View File

@ -7,6 +7,7 @@ using Bit.Core;
using Bit.Core.Utilities;
using AspNetCoreRateLimit;
using System.Globalization;
using Microsoft.Extensions.Logging;
namespace Bit.Identity
{
@ -75,7 +76,8 @@ namespace Bit.Identity
IApplicationBuilder app,
IHostingEnvironment env,
IApplicationLifetime appLifetime,
GlobalSettings globalSettings)
GlobalSettings globalSettings,
ILogger<Startup> logger)
{
app.UseSerilog(env, appLifetime, globalSettings);
@ -97,6 +99,9 @@ namespace Bit.Identity
// Add IdentityServer to the request pipeline.
app.UseIdentityServer();
// Log startup
logger.LogInformation(Constants.BypassFiltersEventId, globalSettings.ProjectName + " started.");
}
}
}