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:
parent
1025424461
commit
e61e2cb0e9
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user