1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-25 05:21:03 -05:00

disable telemetry crashes

This commit is contained in:
Kyle Spearrin 2017-10-23 18:00:15 -04:00
parent 1025424461
commit e61e2cb0e9

View File

@ -43,20 +43,13 @@ namespace Bit.Icons
public void Configure( public void Configure(
IApplicationBuilder app, IApplicationBuilder app,
IHostingEnvironment env, IHostingEnvironment env)
TelemetryConfiguration telemetry)
{ {
if(env.IsDevelopment()) if(env.IsDevelopment())
{ {
app.UseDeveloperExceptionPage(); app.UseDeveloperExceptionPage();
} }
try
{
telemetry.DisableTelemetry = true;
}
catch { }
app.UseResponseCaching(); app.UseResponseCaching();
app.UseMvc(); app.UseMvc();
} }