Browse Source

Update telemetry condition check to ensure proper handling of enabled state

pull/23059/head
Emre KARA 1 year ago
parent
commit
ec1260951f
  1. 2
      framework/src/Volo.Abp.Core/Volo/Abp/AbpApplicationBase.cs

2
framework/src/Volo.Abp.Core/Volo/Abp/AbpApplicationBase.cs

@ -372,7 +372,7 @@ public abstract class AbpApplicationBase : IAbpApplication
var abpHostEnvironment = serviceProvider.GetRequiredService<IAbpHostEnvironment>();
var configuration = serviceProvider.GetRequiredService<IConfiguration>();
if (!abpHostEnvironment.IsDevelopment() || configuration.GetValue<bool?>("Abp:Telemetry:IsEnabled") == false)
if (!abpHostEnvironment.IsDevelopment() || configuration.GetValue<bool?>("Abp:Telemetry:IsEnabled") != true)
{
return;
}

Loading…
Cancel
Save