Browse Source

Only log errors with LaunchDarkly (#3298)

pull/3230/head
Matt Bishop 2 years ago committed by GitHub
parent
commit
9db1007df6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Core/Services/Implementations/LaunchDarklyFeatureService.cs

2
src/Core/Services/Implementations/LaunchDarklyFeatureService.cs

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
using Bit.Core.Context;
using Bit.Core.Settings;
using LaunchDarkly.Logging;
using LaunchDarkly.Sdk.Server;
using LaunchDarkly.Sdk.Server.Integrations;
@ -14,6 +15,7 @@ public class LaunchDarklyFeatureService : IFeatureService, IDisposable @@ -14,6 +15,7 @@ public class LaunchDarklyFeatureService : IFeatureService, IDisposable
IGlobalSettings globalSettings)
{
var ldConfig = Configuration.Builder(globalSettings.LaunchDarkly?.SdkKey);
ldConfig.Logging(Components.Logging().Level(LogLevel.Error));
if (string.IsNullOrEmpty(globalSettings.LaunchDarkly?.SdkKey))
{

Loading…
Cancel
Save